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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.0008059/0.0008058, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.308/1.308, allocations: 223.2 MB / 239 MB, free: 5.453 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.0009951/0.000995, allocations: 192.3 kB / 290.3 MB, free: 2.137 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03261/0.03261, allocations: 8.779 MB / 350.1 MB, free: 4.656 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003615/0.0003616, allocations: 10.56 kB / 413.3 MB, free: 43.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09092/0.0913, allocations: 52.57 MB / 465.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.0229/0.1143, allocations: 22.2 MB / 488 MB, free: 7.105 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01418/0.1285, allocations: 7.32 MB / 495.4 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00474/0.1332, allocations: 159.6 kB / 495.5 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005231/0.1385, allocations: 1.43 MB / 496.9 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00854/0.1471, allocations: 2.517 MB / 499.5 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005452/0.1525, allocations: 1.303 MB / 0.489 GB, free: 10.35 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01506/0.1676, allocations: 10.82 MB / 0.4996 GB, free: 15.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02715/0.1948, allocations: 13.8 MB / 0.5131 GB, free: 1.621 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006257/0.2011, allocations: 3.516 MB / 0.5165 GB, free: 14.09 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006872/0.208, allocations: 3.981 MB / 0.5204 GB, free: 10.09 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00271/0.2107, allocations: 0.5195 MB / 0.5209 GB, free: 9.574 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004093/0.2148, allocations: 0.8629 MB / 0.5217 GB, free: 8.711 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002819/0.2177, allocations: 1.67 MB / 0.5234 GB, free: 7.039 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003554/0.2213, allocations: 1.709 MB / 0.525 GB, free: 5.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2428/0.464, allocations: 15.31 MB / 0.54 GB, free: 21.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.4641, allocations: 6.953 kB / 0.54 GB, free: 21.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4641, allocations: 0 / 0.54 GB, free: 21.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005007/0.4646, allocations: 0 / 0.54 GB, free: 21.84 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.0276/0.4922, allocations: 9.124 MB / 0.5489 GB, free: 17.36 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/0.4923, allocations: 10.06 kB / 0.5489 GB, free: 17.36 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005364/0.4976, allocations: 1.271 MB / 0.5502 GB, free: 17.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03173/0.5294, allocations: 5.661 MB / 0.5557 GB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01304/0.5425, allocations: 5.602 MB / 0.5611 GB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006108/0.5431, allocations: 0.5828 MB / 0.5617 GB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003364/0.5465, allocations: 0.7656 MB / 0.5625 GB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03136/0.5779, allocations: 12.72 MB / 0.5749 GB, free: 10.6 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003605/0.5783, allocations: 13.5 kB / 0.5749 GB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002542/0.5808, allocations: 331.7 kB / 0.5752 GB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004867/0.5813, allocations: 0.4889 MB / 0.5757 GB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02473/0.6061, allocations: 12.19 MB / 0.5876 GB, free: 4.938 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07891/0.685, allocations: 43.84 MB / 0.6304 GB, free: 9.816 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02338/0.7084, allocations: 25.13 MB / 0.655 GB, free: 13.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005584/0.714, allocations: 2.963 MB / 0.6579 GB, free: 10.84 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005607/0.7146, allocations: 250.3 kB / 0.6581 GB, free: 10.57 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004865/0.7195, allocations: 2.573 MB / 0.6606 GB, free: 7.926 MB / 446.1 MB Notification: Performance of pre-optimization done (n=391): time 6.833e-06/0.7196, allocations: 0 / 0.6606 GB, free: 7.926 MB / 446.1 MB Notification: Performance of matching and sorting (n=397): time 0.04681/0.7664, allocations: 19.68 MB / 0.6798 GB, free: 4.141 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000235/0.7667, allocations: 362.9 kB / 0.6802 GB, free: 3.715 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006833/0.7735, allocations: 3.491 MB / 0.6836 GB, free: 224 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008645/0.7744, allocations: 96.44 kB / 0.6837 GB, free: 124 kB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002589/0.777, allocations: 3.375 MB / 0.687 GB, free: 12.73 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0017/0.7787, allocations: 1.347 MB / 0.6883 GB, free: 11.39 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003408/0.7791, allocations: 116 kB / 0.6884 GB, free: 11.28 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0004627/0.7795, allocations: 0.5258 MB / 0.6889 GB, free: 10.75 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00411/0.7837, allocations: 2.537 MB / 0.6914 GB, free: 8.203 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005608/0.7893, allocations: 4.495 MB / 0.6958 GB, free: 2.859 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005793/0.7951, allocations: 3.535 MB / 0.6992 GB, free: 15.37 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.392e-05/0.7952, allocations: 20 kB / 0.6992 GB, free: 15.35 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.0156/0.8108, allocations: 8.231 MB / 0.7073 GB, free: 7.477 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.202e-05/0.8109, allocations: 61.69 kB / 0.7073 GB, free: 7.41 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.996e-05/0.811, allocations: 60 kB / 0.7074 GB, free: 7.352 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002568/0.8136, allocations: 1.005 MB / 0.7084 GB, free: 6.348 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004426/0.8181, allocations: 1.26 MB / 0.7096 GB, free: 5.176 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2176/1.036, allocations: 8.228 MB / 0.7176 GB, free: 167.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004952/1.041, allocations: 356 kB / 0.718 GB, free: 167.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001093/1.042, allocations: 266.7 kB / 0.7182 GB, free: 167.6 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,53.0%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006211/1.048, allocations: 2.899 MB / 0.7211 GB, free: 167.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009567/1.049, allocations: 393.5 kB / 0.7214 GB, free: 167.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01054/1.06, allocations: 6.178 MB / 0.7275 GB, free: 165.9 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-05/1.06, allocations: 42.59 kB / 0.7275 GB, free: 165.9 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.664e-05/1.06, allocations: 14.25 kB / 0.7275 GB, free: 165.9 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.794e-05/1.06, allocations: 18.33 kB / 0.7276 GB, free: 165.9 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02358/1.083, allocations: 14.9 MB / 0.7421 GB, free: 159.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.427e-05/1.083, allocations: 3.844 kB / 0.7421 GB, free: 159.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002405/1.086, allocations: 0.6889 MB / 0.7428 GB, free: 159.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002083/1.088, allocations: 0.8827 MB / 0.7436 GB, free: 159.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003236/1.088, allocations: 87.08 kB / 0.7437 GB, free: 159.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008405/1.097, allocations: 7.169 MB / 0.7507 GB, free: 155.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/1.097, allocations: 3 kB / 0.7507 GB, free: 155.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01233/1.109, allocations: 8.758 MB / 0.7593 GB, free: 150 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002315/1.111, allocations: 0.9382 MB / 0.7602 GB, free: 149.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001136/1.112, allocations: 78.06 kB / 0.7603 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002326/1.115, allocations: 199.8 kB / 0.7605 GB, free: 149 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004975/1.115, allocations: 270.2 kB / 0.7607 GB, free: 148.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002289/1.116, allocations: 119.2 kB / 0.7608 GB, free: 148.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003522/1.119, allocations: 2.338 MB / 0.7631 GB, free: 146.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.71e-07/1.119, allocations: 0 / 0.7631 GB, free: 146.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00589/1.125, allocations: 1.456 MB / 0.7645 GB, free: 145.3 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,50.0%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01265/1.138, allocations: 9.462 MB / 0.7738 GB, free: 135.7 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01062/1.148, allocations: 6.429 MB / 0.7801 GB, free: 129.3 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.216e-05/1.148, allocations: 3.344 kB / 0.7801 GB, free: 129.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004528/1.153, allocations: 3.085 MB / 0.7831 GB, free: 126.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005299/1.158, allocations: 0.7863 MB / 0.7838 GB, free: 125.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08808/1.246, allocations: 40.61 MB / 0.8235 GB, free: 82.68 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006509/1.253, allocations: 5.012 MB / 0.8284 GB, free: 77.62 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005238/1.258, allocations: 1.586 MB / 0.83 GB, free: 76.04 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004231/1.262, allocations: 2.76 MB / 0.8326 GB, free: 73.27 MB / 494.1 MB Notification: Performance of SimCode: time 1.774e-06/1.262, allocations: 0 / 0.8326 GB, free: 73.27 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3357/1.598, allocations: 108.1 MB / 0.9382 GB, free: 142.3 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001442/1.598, allocations: 212.5 kB / 0.9384 GB, free: 142.1 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.926/5.524, allocations: 0 / 0.9384 GB, free: 142.1 MB / 494.1 MB (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/linux/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) Environment - environmentSimulation: