Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.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_VCurve1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1",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.006123/0.006123, allocations: 100.7 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 222.9 MB / 239.4 MB, free: 4.535 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.001455/0.001455, allocations: 200.4 kB / 289.7 MB, free: 2.254 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03766/0.03766, allocations: 8.795 MB / 348.7 MB, free: 4.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001621, allocations: 75.88 kB / 463.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1111, allocations: 51.55 MB / 0.5029 GB, free: 9.965 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.02937/0.1405, allocations: 25.43 MB / 0.5278 GB, free: 424 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2829/0.4235, allocations: 7.934 MB / 0.5355 GB, free: 4.367 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006623/0.4301, allocations: 173.2 kB / 0.5357 GB, free: 4.367 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01998/0.4501, allocations: 7.651 MB / 0.5432 GB, free: 3.512 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01389/0.4641, allocations: 3.041 MB / 0.5461 GB, free: 2.66 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008226/0.4723, allocations: 2.014 MB / 0.5481 GB, free: 2.465 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01768/0.49, allocations: 9.227 MB / 0.5571 GB, free: 15.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03702/0.5271, allocations: 17.27 MB / 0.574 GB, free: 5.883 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01028/0.5375, allocations: 4.759 MB / 0.5786 GB, free: 1.238 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01018/0.5477, allocations: 5.241 MB / 0.5837 GB, free: 12.14 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004376/0.5521, allocations: 1.355 MB / 0.5851 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00676/0.5589, allocations: 1.719 MB / 0.5867 GB, free: 9.082 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00483/0.5638, allocations: 2.667 MB / 0.5893 GB, free: 6.449 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01191/0.5758, allocations: 5.084 MB / 0.5943 GB, free: 1.387 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02658/0.6024, allocations: 18.15 MB / 0.612 GB, free: 15.55 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.598e-06/0.6024, allocations: 0 / 0.612 GB, free: 15.55 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.276e-06/0.6025, allocations: 4 kB / 0.612 GB, free: 15.55 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006205/0.6031, allocations: 0 / 0.612 GB, free: 15.55 MB / 430.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.03957/0.6427, allocations: 10.75 MB / 0.6225 GB, free: 4.793 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.2e-05/0.6428, allocations: 8.031 kB / 0.6225 GB, free: 4.785 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005595/0.6484, allocations: 1.271 MB / 0.6238 GB, free: 3.516 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03285/0.6812, allocations: 5.676 MB / 0.6293 GB, free: 13.89 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01603/0.6973, allocations: 5.799 MB / 0.635 GB, free: 8.074 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007349/0.6981, allocations: 0.5841 MB / 0.6356 GB, free: 7.5 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004153/0.7023, allocations: 0.7656 MB / 0.6363 GB, free: 6.746 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0364/0.7387, allocations: 12.77 MB / 0.6488 GB, free: 9.953 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004136/0.7392, allocations: 11.84 kB / 0.6488 GB, free: 9.941 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003321/0.7425, allocations: 327.6 kB / 0.6491 GB, free: 9.633 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006548/0.7432, allocations: 0.4967 MB / 0.6496 GB, free: 9.133 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02918/0.7724, allocations: 12.26 MB / 0.6616 GB, free: 12.86 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08073/0.8532, allocations: 43.26 MB / 0.7038 GB, free: 0.5039 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02322/0.8765, allocations: 25.19 MB / 0.7284 GB, free: 4.406 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005085/0.8816, allocations: 2.971 MB / 0.7313 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004888/0.8821, allocations: 246.4 kB / 0.7315 GB, free: 1.164 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.4284/1.311, allocations: 2.573 MB / 0.734 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 8.686e-06/1.311, allocations: 0 / 0.734 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.04315/1.354, allocations: 18.12 MB / 0.7517 GB, free: 160.9 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/1.354, allocations: 356.4 kB / 0.7521 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007903/1.362, allocations: 3.52 MB / 0.7555 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008382/1.363, allocations: 91.42 kB / 0.7556 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002386/1.365, allocations: 3.383 MB / 0.7589 GB, free: 156.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001634/1.367, allocations: 1.347 MB / 0.7602 GB, free: 155.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002465/1.369, allocations: 1.083 MB / 0.7613 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.397e-05/1.369, allocations: 309.3 kB / 0.7616 GB, free: 154.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004294/1.374, allocations: 2.55 MB / 0.7641 GB, free: 153.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00544/1.379, allocations: 4.506 MB / 0.7685 GB, free: 150.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009955/1.389, allocations: 7.457 MB / 0.7757 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001138/1.389, allocations: 15.81 kB / 0.7758 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01745/1.407, allocations: 8.278 MB / 0.7838 GB, free: 142 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.304e-05/1.407, allocations: 60.83 kB / 0.7839 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001095/1.407, allocations: 61.75 kB / 0.784 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002797/1.41, allocations: 0.9956 MB / 0.7849 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004814/1.415, allocations: 1.256 MB / 0.7862 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01107/1.426, allocations: 8.807 MB / 0.7948 GB, free: 136.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004821/1.431, allocations: 353.8 kB / 0.7951 GB, free: 136 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001047/1.432, allocations: 269.2 kB / 0.7954 GB, free: 135.8 MB / 0.5294 GB 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.005722/1.437, allocations: 2.903 MB / 0.7982 GB, free: 133.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001355/1.439, allocations: 383.2 kB / 0.7986 GB, free: 132.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009481/1.448, allocations: 6.184 MB / 0.8046 GB, free: 126.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.483e-05/1.448, allocations: 40 kB / 0.8046 GB, free: 126.6 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.579e-05/1.448, allocations: 12 kB / 0.8046 GB, free: 126.6 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.372e-05/1.448, allocations: 19.92 kB / 0.8047 GB, free: 126.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02485/1.473, allocations: 14.64 MB / 0.819 GB, free: 111.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.608e-05/1.473, allocations: 4 kB / 0.819 GB, free: 111.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002962/1.476, allocations: 0.6871 MB / 0.8196 GB, free: 111.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002431/1.479, allocations: 0.877 MB / 0.8205 GB, free: 110.3 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007378/1.479, allocations: 87.98 kB / 0.8206 GB, free: 110.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009052/1.489, allocations: 7.745 MB / 0.8281 GB, free: 102.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/1.489, allocations: 8 kB / 0.8281 GB, free: 102.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01206/1.501, allocations: 8.777 MB / 0.8367 GB, free: 93.44 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002623/1.503, allocations: 0.91 MB / 0.8376 GB, free: 92.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009965/1.504, allocations: 85.11 kB / 0.8377 GB, free: 92.42 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002394/1.507, allocations: 195.8 kB / 0.8379 GB, free: 92.23 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006962/1.507, allocations: 271.1 kB / 0.8381 GB, free: 91.96 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000258/1.508, allocations: 112 kB / 0.8382 GB, free: 91.86 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003502/1.511, allocations: 2.363 MB / 0.8405 GB, free: 89.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.21e-07/1.511, allocations: 5.203 kB / 0.8406 GB, free: 89.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00677/1.518, allocations: 1.449 MB / 0.842 GB, free: 88.05 MB / 0.5294 GB 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.01471/1.533, allocations: 9.491 MB / 0.8512 GB, free: 78.44 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00944/1.542, allocations: 6.492 MB / 0.8576 GB, free: 71.93 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.347e-06/1.542, allocations: 4 kB / 0.8576 GB, free: 71.93 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004483/1.547, allocations: 3.073 MB / 0.8606 GB, free: 68.82 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004834/1.552, allocations: 0.8165 MB / 0.8614 GB, free: 68.04 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06955/1.621, allocations: 47.99 MB / 0.9082 GB, free: 17.96 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005193/1.627, allocations: 5.008 MB / 0.9131 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004098/1.631, allocations: 1.59 MB / 0.9147 GB, free: 11.32 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004046/1.635, allocations: 2.753 MB / 0.9174 GB, free: 8.562 MB / 0.5294 GB Notification: Performance of SimCode: time 1.864e-06/1.635, allocations: 0 / 0.9174 GB, free: 8.562 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4064/2.041, allocations: 112.3 MB / 1.027 GB, free: 108.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.79/20.84, allocations: 7.922 kB / 1.027 GB, free: 108.7 MB / 0.545 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe 2>&1)