Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.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.SMEE_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",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.001242/0.001242, allocations: 108 kB / 15.6 MB, free: 132 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.429/1.429, allocations: 222.9 MB / 239.3 MB, free: 4.59 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.001511/0.001511, allocations: 192.5 kB / 289.6 MB, free: 2.32 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04629/0.04629, allocations: 8.798 MB / 348.5 MB, free: 4.695 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001747/0.001747, allocations: 82.3 kB / 411.2 MB, free: 42.18 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08844/0.09021, allocations: 51.57 MB / 462.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.02572/0.116, allocations: 25.44 MB / 488.2 MB, free: 4.793 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01868/0.1347, allocations: 7.936 MB / 496.1 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006018/0.1408, allocations: 171.5 kB / 496.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02094/0.1617, allocations: 7.651 MB / 0.4921 GB, free: 4.996 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0129/0.1746, allocations: 3.053 MB / 0.4951 GB, free: 1.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006689/0.1814, allocations: 2.02 MB / 0.4971 GB, free: 15.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01532/0.1967, allocations: 9.161 MB / 0.506 GB, free: 6.719 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02992/0.2267, allocations: 17.33 MB / 0.523 GB, free: 5.238 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008831/0.2355, allocations: 4.738 MB / 0.5276 GB, free: 500 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.187/0.4226, allocations: 5.258 MB / 0.5327 GB, free: 23.08 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003298/0.4259, allocations: 1.354 MB / 0.534 GB, free: 23.08 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005195/0.4312, allocations: 1.724 MB / 0.5357 GB, free: 23.08 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00343/0.4346, allocations: 2.677 MB / 0.5383 GB, free: 22.93 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009351/0.444, allocations: 5.085 MB / 0.5433 GB, free: 21.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02067/0.4647, allocations: 18.06 MB / 0.5609 GB, free: 16.46 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.4647, allocations: 0 / 0.5609 GB, free: 16.46 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.4647, allocations: 0 / 0.5609 GB, free: 16.46 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004988/0.4652, allocations: 0.5625 kB / 0.5609 GB, free: 16.46 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: 2183 * Number of variables: 2183 Notification: Performance of Generate backend data structure: time 0.03351/0.4988, allocations: 10.81 MB / 0.5715 GB, free: 9.672 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.4988, allocations: 10.09 kB / 0.5715 GB, free: 9.672 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003819/0.5026, allocations: 1.265 MB / 0.5727 GB, free: 8.852 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03125/0.5339, allocations: 5.641 MB / 0.5783 GB, free: 6.324 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01074/0.5447, allocations: 5.663 MB / 0.5838 GB, free: 2.551 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003943/0.5451, allocations: 0.5857 MB / 0.5844 GB, free: 2.289 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003576/0.5487, allocations: 0.7694 MB / 0.5851 GB, free: 1.957 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03059/0.5793, allocations: 12.77 MB / 0.5976 GB, free: 5.145 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002504/0.5796, allocations: 15.89 kB / 0.5976 GB, free: 5.129 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001774/0.5814, allocations: 326.2 kB / 0.5979 GB, free: 4.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004762/0.5818, allocations: 496.7 kB / 0.5984 GB, free: 4.332 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02538/0.6072, allocations: 12.26 MB / 0.6104 GB, free: 8.062 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07584/0.6831, allocations: 43.71 MB / 0.653 GB, free: 11.76 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02354/0.7067, allocations: 25.19 MB / 0.6776 GB, free: 15.7 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004818/0.7115, allocations: 2.968 MB / 0.6805 GB, free: 12.73 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003304/0.7119, allocations: 247.7 kB / 0.6808 GB, free: 12.46 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003767/0.7157, allocations: 2.578 MB / 0.6833 GB, free: 9.816 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 6.052e-06/0.7157, allocations: 0 / 0.6833 GB, free: 9.816 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.03659/0.7523, allocations: 18.11 MB / 0.701 GB, free: 7.605 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001497/0.7525, allocations: 363.5 kB / 0.7013 GB, free: 7.176 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005124/0.7576, allocations: 3.522 MB / 0.7048 GB, free: 3.648 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004995/0.7581, allocations: 93.36 kB / 0.7048 GB, free: 3.555 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002191/0.7603, allocations: 3.377 MB / 0.7081 GB, free: 164 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.1738/0.9341, allocations: 1.347 MB / 0.7095 GB, free: 167 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002006/0.9362, allocations: 1.081 MB / 0.7105 GB, free: 167 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.002e-05/0.9363, allocations: 304.9 kB / 0.7108 GB, free: 166.7 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003799/0.9401, allocations: 2.55 MB / 0.7133 GB, free: 166.7 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005124/0.9452, allocations: 4.508 MB / 0.7177 GB, free: 164.4 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01045/0.9557, allocations: 7.454 MB / 0.725 GB, free: 161.9 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.483e-05/0.9558, allocations: 16.69 kB / 0.725 GB, free: 161.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01441/0.9702, allocations: 8.279 MB / 0.7331 GB, free: 159.7 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.118e-05/0.9703, allocations: 54.95 kB / 0.7331 GB, free: 159.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.24e-05/0.9704, allocations: 62.66 kB / 0.7332 GB, free: 159.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002633/0.9731, allocations: 1.008 MB / 0.7342 GB, free: 159.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00437/0.9774, allocations: 1.256 MB / 0.7354 GB, free: 159.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01095/0.9884, allocations: 8.823 MB / 0.744 GB, free: 154.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004835/0.9933, allocations: 363.2 kB / 0.7444 GB, free: 154.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001133/0.9944, allocations: 264.4 kB / 0.7446 GB, free: 154.2 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 275 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (664): * Single equations (assignments): 662 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,48,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006741/1.001, allocations: 2.9 MB / 0.7475 GB, free: 152.7 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001219/1.002, allocations: 389.7 kB / 0.7478 GB, free: 152.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01062/1.013, allocations: 6.178 MB / 0.7539 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.511e-05/1.013, allocations: 43.84 kB / 0.7539 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.066e-05/1.013, allocations: 19.94 kB / 0.7539 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-05/1.013, allocations: 23.48 kB / 0.7539 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02137/1.035, allocations: 14.92 MB / 0.7685 GB, free: 136.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.421e-05/1.035, allocations: 4 kB / 0.7685 GB, free: 136.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002488/1.037, allocations: 0.68 MB / 0.7692 GB, free: 136.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002225/1.039, allocations: 0.8842 MB / 0.77 GB, free: 135.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002733/1.04, allocations: 87.98 kB / 0.7701 GB, free: 135.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009178/1.049, allocations: 7.756 MB / 0.7777 GB, free: 127.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/1.049, allocations: 7.938 kB / 0.7777 GB, free: 127.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01192/1.061, allocations: 8.781 MB / 0.7863 GB, free: 118.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002439/1.063, allocations: 0.9217 MB / 0.7872 GB, free: 117.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007445/1.064, allocations: 72 kB / 0.7872 GB, free: 117.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002207/1.066, allocations: 195.8 kB / 0.7874 GB, free: 117.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005767/1.067, allocations: 271.1 kB / 0.7877 GB, free: 117 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002052/1.067, allocations: 116 kB / 0.7878 GB, free: 116.9 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003437/1.07, allocations: 2.363 MB / 0.7901 GB, free: 114.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.71e-07/1.07, allocations: 0 / 0.7901 GB, free: 114.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005639/1.076, allocations: 1.449 MB / 0.7915 GB, free: 113.1 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 3 (smee.inertiaRotor.w,smee.rotorCage.port_p.reference.gamma,constantTorque.phi) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (371): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,46,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01117/1.087, allocations: 9.487 MB / 0.8008 GB, free: 103.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02487/1.112, allocations: 11.91 MB / 0.8124 GB, free: 91.62 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.107e-06/1.112, allocations: 5.812 kB / 0.8124 GB, free: 91.62 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004333/1.117, allocations: 3.073 MB / 0.8154 GB, free: 88.52 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004307/1.121, allocations: 0.8244 MB / 0.8162 GB, free: 87.74 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07329/1.194, allocations: 56.28 MB / 0.8712 GB, free: 26.82 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004177/1.198, allocations: 5.012 MB / 0.8761 GB, free: 21.77 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004466/1.203, allocations: 1.597 MB / 0.8776 GB, free: 20.16 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003377/1.206, allocations: 2.76 MB / 0.8803 GB, free: 17.4 MB / 494.1 MB Notification: Performance of SimCode: time 6.01e-07/1.206, allocations: 0 / 0.8803 GB, free: 17.4 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3549/1.561, allocations: 113.5 MB / 0.9912 GB, free: 87.76 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/12.96, allocations: 18.67 kB / 0.9912 GB, free: 87.75 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe 2>&1)