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.00127/0.00127, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.268/1.268, allocations: 222.9 MB / 239 MB, free: 4.734 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.001213/0.001213, allocations: 184.5 kB / 289.3 MB, free: 2.473 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03413/0.03413, allocations: 8.8 MB / 348.2 MB, free: 4.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 77.19 kB / 410.7 MB, free: 42.34 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08831/0.08973, allocations: 51.57 MB / 462.3 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.02399/0.1137, allocations: 25.01 MB / 487.3 MB, free: 5.543 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01524/0.129, allocations: 7.836 MB / 495.1 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004491/0.1336, allocations: 163.5 kB / 495.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01598/0.1496, allocations: 7.229 MB / 0.4907 GB, free: 6.281 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008673/0.1583, allocations: 2.766 MB / 0.4934 GB, free: 3.508 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005282/0.1635, allocations: 1.882 MB / 0.4953 GB, free: 1.633 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01176/0.1753, allocations: 9.213 MB / 0.5043 GB, free: 8.391 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02324/0.1986, allocations: 19.77 MB / 0.5236 GB, free: 4.488 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1728/0.3714, allocations: 4.772 MB / 0.5282 GB, free: 21.55 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007079/0.3786, allocations: 5.316 MB / 0.5334 GB, free: 21.38 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003483/0.3821, allocations: 1.354 MB / 0.5347 GB, free: 21.38 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004655/0.3868, allocations: 1.722 MB / 0.5364 GB, free: 21.38 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003255/0.39, allocations: 2.682 MB / 0.539 GB, free: 21.09 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008262/0.3983, allocations: 5.086 MB / 0.544 GB, free: 19.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01581/0.4141, allocations: 18.05 MB / 0.5616 GB, free: 14.45 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.4142, allocations: 0 / 0.5616 GB, free: 14.45 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.4142, allocations: 0 / 0.5616 GB, free: 14.45 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004414/0.4146, allocations: 4.312 kB / 0.5616 GB, free: 14.45 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.03221/0.4469, allocations: 10.81 MB / 0.5722 GB, free: 8.242 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.569e-05/0.4469, allocations: 9 kB / 0.5722 GB, free: 8.242 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004877/0.4518, allocations: 1.268 MB / 0.5734 GB, free: 7.422 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03105/0.4829, allocations: 5.637 MB / 0.5789 GB, free: 4.895 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01332/0.4963, allocations: 5.662 MB / 0.5845 GB, free: 1.117 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000592/0.4969, allocations: 0.5877 MB / 0.585 GB, free: 0.8555 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003978/0.5009, allocations: 0.7675 MB / 0.5858 GB, free: 120 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03282/0.5337, allocations: 12.77 MB / 0.5983 GB, free: 3.305 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002757/0.5341, allocations: 19.83 kB / 0.5983 GB, free: 3.289 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001957/0.536, allocations: 328.8 kB / 0.5986 GB, free: 2.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004944/0.5365, allocations: 496.7 kB / 0.5991 GB, free: 2.492 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02507/0.5616, allocations: 12.25 MB / 0.611 GB, free: 6.23 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07534/0.637, allocations: 43.73 MB / 0.6537 GB, free: 9.91 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0242/0.6612, allocations: 25.18 MB / 0.6783 GB, free: 13.86 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004915/0.6662, allocations: 2.971 MB / 0.6812 GB, free: 10.88 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005438/0.6668, allocations: 242.2 kB / 0.6815 GB, free: 10.62 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004353/0.6711, allocations: 2.582 MB / 0.684 GB, free: 7.973 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 6.943e-06/0.6712, allocations: 0 / 0.684 GB, free: 7.973 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.03778/0.7089, allocations: 18.1 MB / 0.7017 GB, free: 5.762 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001814/0.7091, allocations: 359.1 kB / 0.702 GB, free: 5.34 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004863/0.714, allocations: 3.522 MB / 0.7054 GB, free: 1.812 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000405/0.7144, allocations: 89.7 kB / 0.7055 GB, free: 1.719 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1623/0.8768, allocations: 3.377 MB / 0.7088 GB, free: 165.6 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001305/0.8781, allocations: 1.344 MB / 0.7101 GB, free: 164.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001674/0.8798, allocations: 1.087 MB / 0.7112 GB, free: 164.7 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.076e-05/0.8798, allocations: 308.4 kB / 0.7115 GB, free: 164.4 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003444/0.8833, allocations: 2.546 MB / 0.714 GB, free: 164.4 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004497/0.8878, allocations: 4.514 MB / 0.7184 GB, free: 162.1 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008602/0.8964, allocations: 7.448 MB / 0.7257 GB, free: 159.6 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.287e-05/0.8965, allocations: 17.62 kB / 0.7257 GB, free: 159.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01301/0.9095, allocations: 8.28 MB / 0.7338 GB, free: 157.6 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.453e-05/0.9096, allocations: 60.73 kB / 0.7338 GB, free: 157.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.529e-05/0.9097, allocations: 58.91 kB / 0.7339 GB, free: 157.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002552/0.9123, allocations: 1.007 MB / 0.7349 GB, free: 157.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003969/0.9163, allocations: 1.258 MB / 0.7361 GB, free: 157.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01012/0.9264, allocations: 8.824 MB / 0.7447 GB, free: 152.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004093/0.9305, allocations: 362.9 kB / 0.745 GB, free: 152.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005118/0.931, allocations: 262.4 kB / 0.7453 GB, free: 152.1 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.003902/0.9349, allocations: 2.9 MB / 0.7481 GB, free: 150.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007175/0.9357, allocations: 388.4 kB / 0.7485 GB, free: 150.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008657/0.9443, allocations: 6.181 MB / 0.7545 GB, free: 147.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.332e-05/0.9444, allocations: 44 kB / 0.7546 GB, free: 147.4 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.434e-05/0.9444, allocations: 11.94 kB / 0.7546 GB, free: 147.3 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.229e-05/0.9444, allocations: 23.17 kB / 0.7546 GB, free: 147.3 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01903/0.9635, allocations: 14.92 MB / 0.7692 GB, free: 135 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.474e-05/0.9635, allocations: 9.188 kB / 0.7692 GB, free: 135 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002253/0.9658, allocations: 0.6838 MB / 0.7699 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002011/0.9678, allocations: 0.8852 MB / 0.7707 GB, free: 133.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002174/0.968, allocations: 83.98 kB / 0.7708 GB, free: 133.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007983/0.976, allocations: 7.757 MB / 0.7784 GB, free: 125.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/0.976, allocations: 15.81 kB / 0.7784 GB, free: 125.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01018/0.9862, allocations: 8.778 MB / 0.787 GB, free: 116.6 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001566/0.9878, allocations: 0.9062 MB / 0.7878 GB, free: 115.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005509/0.9884, allocations: 79.98 kB / 0.7879 GB, free: 115.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001824/0.9902, allocations: 191.8 kB / 0.7881 GB, free: 115.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004829/0.9907, allocations: 279.1 kB / 0.7884 GB, free: 115.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001929/0.9909, allocations: 108 kB / 0.7885 GB, free: 115 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002668/0.9936, allocations: 2.363 MB / 0.7908 GB, free: 112.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.403e-06/0.9936, allocations: 0 / 0.7908 GB, free: 112.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004356/0.998, allocations: 1.455 MB / 0.7922 GB, free: 111.2 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.01032/1.008, allocations: 9.496 MB / 0.8015 GB, free: 101.6 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02324/1.032, allocations: 11.91 MB / 0.8131 GB, free: 89.73 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/1.032, allocations: 0 / 0.8131 GB, free: 89.73 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003823/1.035, allocations: 3.078 MB / 0.8161 GB, free: 86.62 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003434/1.039, allocations: 0.8129 MB / 0.8169 GB, free: 85.85 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09014/1.129, allocations: 59.47 MB / 0.875 GB, free: 21.74 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004075/1.133, allocations: 5.005 MB / 0.8799 GB, free: 16.69 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004219/1.137, allocations: 1.59 MB / 0.8814 GB, free: 15.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003205/1.141, allocations: 2.756 MB / 0.8841 GB, free: 12.34 MB / 494.1 MB Notification: Performance of SimCode: time 1.152e-06/1.141, allocations: 0 / 0.8841 GB, free: 12.34 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6942/1.835, allocations: 113.4 MB / 0.9948 GB, free: 84.09 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001713/1.835, allocations: 217.9 kB / 0.995 GB, free: 83.84 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.157/5.992, allocations: 3.938 kB / 0.995 GB, free: 83.83 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)