Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001528/0.001528, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 222.9 MB / 239.3 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00142/0.00142, allocations: 195.6 kB / 289.6 MB, free: 2.305 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03491/0.03491, allocations: 8.81 MB / 348.5 MB, free: 4.699 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 81.61 kB / 411.2 MB, free: 42.06 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06938/0.07092, allocations: 51.56 MB / 462.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02853/0.09949, allocations: 28.72 MB / 491.5 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01537/0.1149, allocations: 8.442 MB / 499.9 MB, free: 8.934 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003989/0.1189, allocations: 215.3 kB / 0.4884 GB, free: 8.723 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01753/0.1365, allocations: 8.135 MB / 0.4964 GB, free: 0.5664 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008441/0.1449, allocations: 2.81 MB / 0.4991 GB, free: 13.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004445/0.1494, allocations: 1.855 MB / 0.5009 GB, free: 11.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01028/0.1597, allocations: 9.91 MB / 0.5106 GB, free: 1.953 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1838/0.3435, allocations: 21.42 MB / 0.5315 GB, free: 13.65 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005864/0.3494, allocations: 5.342 MB / 0.5367 GB, free: 13.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008267/0.3577, allocations: 6.075 MB / 0.5427 GB, free: 12.36 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003831/0.3616, allocations: 1.542 MB / 0.5442 GB, free: 12.36 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004843/0.3664, allocations: 1.901 MB / 0.546 GB, free: 12.35 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002579/0.369, allocations: 2.99 MB / 0.5489 GB, free: 12.02 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006408/0.3754, allocations: 5.862 MB / 0.5547 GB, free: 10.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01365/0.3891, allocations: 20.51 MB / 0.5747 GB, free: 1.754 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3891, allocations: 2.906 kB / 0.5747 GB, free: 1.754 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3891, allocations: 0 / 0.5747 GB, free: 1.754 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004109/0.3896, allocations: 0 / 0.5747 GB, free: 1.754 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2602 * Number of variables: 2602 Notification: Performance of Generate backend data structure: time 0.03299/0.4226, allocations: 11.87 MB / 0.5863 GB, free: 10.22 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.4226, allocations: 10.69 kB / 0.5863 GB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004353/0.427, allocations: 1.351 MB / 0.5876 GB, free: 9.262 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03182/0.4588, allocations: 5.608 MB / 0.5931 GB, free: 4.277 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01217/0.471, allocations: 6.143 MB / 0.5991 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006306/0.4717, allocations: 0.7016 MB / 0.5998 GB, free: 13.65 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002962/0.4746, allocations: 0.9321 MB / 0.6007 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03448/0.5091, allocations: 15.08 MB / 0.6154 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003462/0.5095, allocations: 27.73 kB / 0.6154 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002197/0.5117, allocations: 390.2 kB / 0.6158 GB, free: 13.2 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005106/0.5122, allocations: 0.5078 MB / 0.6163 GB, free: 12.69 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0268/0.5391, allocations: 13.74 MB / 0.6297 GB, free: 14.93 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07586/0.615, allocations: 47.84 MB / 0.6764 GB, free: 14.66 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1814/0.7964, allocations: 28.79 MB / 0.7046 GB, free: 158.1 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004167/0.8006, allocations: 2.897 MB / 0.7074 GB, free: 158 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002758/0.8009, allocations: 234.3 kB / 0.7076 GB, free: 157.8 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.915e-05/0.801, allocations: 75.08 kB / 0.7077 GB, free: 157.8 MB / 494.1 MB Notification: Performance of pre-optimization done (n=372): time 5.35e-06/0.801, allocations: 0 / 0.7077 GB, free: 157.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=380): time 0.02849/0.8295, allocations: 14.77 MB / 0.7221 GB, free: 156.1 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.889e-05/0.8296, allocations: 90.61 kB / 0.7222 GB, free: 156 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004835/0.8344, allocations: 3.764 MB / 0.7259 GB, free: 155.6 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002662/0.8347, allocations: 85.95 kB / 0.7259 GB, free: 155.6 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001702/0.8364, allocations: 4.08 MB / 0.7299 GB, free: 153.3 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007463/0.8371, allocations: 1.302 MB / 0.7312 GB, free: 152.3 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0014/0.8385, allocations: 1.172 MB / 0.7323 GB, free: 151.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.266e-05/0.8386, allocations: 305.1 kB / 0.7326 GB, free: 151.5 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002967/0.8416, allocations: 2.571 MB / 0.7351 GB, free: 150.5 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004026/0.8456, allocations: 5.058 MB / 0.7401 GB, free: 146.3 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007711/0.8533, allocations: 8.256 MB / 0.7481 GB, free: 140.4 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.332e-05/0.8534, allocations: 23.03 kB / 0.7482 GB, free: 140.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01196/0.8654, allocations: 8.619 MB / 0.7566 GB, free: 137 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.399e-05/0.8654, allocations: 41.25 kB / 0.7566 GB, free: 137 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001057/0.8656, allocations: 82.41 kB / 0.7567 GB, free: 137 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002209/0.8678, allocations: 0.8758 MB / 0.7576 GB, free: 136.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004213/0.872, allocations: 1.362 MB / 0.7589 GB, free: 136.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009536/0.8815, allocations: 9.031 MB / 0.7677 GB, free: 129.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004303/0.8859, allocations: 333.3 kB / 0.768 GB, free: 128.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005795/0.8865, allocations: 309.9 kB / 0.7683 GB, free: 128.5 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 376 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (720): * Single equations (assignments): 718 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004938/0.8914, allocations: 3.511 MB / 0.7718 GB, free: 125.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008629/0.8923, allocations: 414.7 kB / 0.7721 GB, free: 125.1 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008363/0.9007, allocations: 5.862 MB / 0.7779 GB, free: 119.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.989e-05/0.9007, allocations: 40 kB / 0.7779 GB, free: 119.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.226e-05/0.9007, allocations: 8 kB / 0.7779 GB, free: 119.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.967e-05/0.9007, allocations: 19.92 kB / 0.7779 GB, free: 119.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01995/0.9207, allocations: 14.79 MB / 0.7924 GB, free: 104.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.27e-05/0.9207, allocations: 4 kB / 0.7924 GB, free: 104.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002406/0.9232, allocations: 0.6674 MB / 0.793 GB, free: 104.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001996/0.9252, allocations: 0.7296 MB / 0.7937 GB, free: 103.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002729/0.9255, allocations: 81.11 kB / 0.7938 GB, free: 103.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008168/0.9336, allocations: 8.065 MB / 0.8017 GB, free: 95 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.9337, allocations: 4 kB / 0.8017 GB, free: 94.99 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01049/0.9442, allocations: 8.503 MB / 0.81 GB, free: 86.39 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001675/0.9459, allocations: 0.8746 MB / 0.8109 GB, free: 85.49 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005164/0.9464, allocations: 71.91 kB / 0.8109 GB, free: 85.42 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00177/0.9482, allocations: 183.8 kB / 0.8111 GB, free: 85.25 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000452/0.9486, allocations: 250.8 kB / 0.8113 GB, free: 85 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000194/0.9488, allocations: 108 kB / 0.8114 GB, free: 84.89 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003039/0.9519, allocations: 2.524 MB / 0.8139 GB, free: 82.39 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.9519, allocations: 0 / 0.8139 GB, free: 82.39 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00464/0.9565, allocations: 1.551 MB / 0.8154 GB, free: 80.84 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 2 (smpm.inertiaRotor.w,quadraticTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (362): * Single equations (assignments): 360 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01011/0.9666, allocations: 9.215 MB / 0.8244 GB, free: 71.52 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02378/0.9904, allocations: 12.51 MB / 0.8366 GB, free: 59.03 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.9905, allocations: 0.875 kB / 0.8366 GB, free: 59.03 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003821/0.9943, allocations: 2.957 MB / 0.8395 GB, free: 56.05 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004586/0.9989, allocations: 0.9698 MB / 0.8405 GB, free: 55.13 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2335/1.232, allocations: 61.76 MB / 0.9008 GB, free: 148.8 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00852/1.241, allocations: 5.974 MB / 0.9066 GB, free: 147.9 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005684/1.247, allocations: 1.86 MB / 0.9084 GB, free: 147.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004585/1.251, allocations: 3.215 MB / 0.9116 GB, free: 147.4 MB / 494.1 MB Notification: Performance of SimCode: time 8.32e-07/1.251, allocations: 4 kB / 0.9116 GB, free: 147.4 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1631/1.414, allocations: 122.2 MB / 1.031 GB, free: 40.91 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/12.88, allocations: 0 / 1.031 GB, free: 40.91 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)