Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Rotational.TestDCPMMachine.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.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",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.001423/0.001423, 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.325/1.325, allocations: 222.9 MB / 239 MB, free: 4.715 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.001323/0.001323, allocations: 192.4 kB / 289.3 MB, free: 2.453 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03613/0.03613, allocations: 8.802 MB / 348.2 MB, free: 4.84 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 77.73 kB / 410.7 MB, free: 42.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0747/0.07622, allocations: 51.57 MB / 462.3 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.003863/0.08011, allocations: 2.898 MB / 465.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009788/0.08111, allocations: 0.6427 MB / 465.8 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001329/0.08126, allocations: 11.94 kB / 465.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001576/0.08143, allocations: 35.7 kB / 465.8 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002165/0.08166, allocations: 91.3 kB / 465.9 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001401/0.08181, allocations: 71.89 kB / 466 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003211/0.08214, allocations: 374.5 kB / 466.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002137/0.08236, allocations: 144.5 kB / 466.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001294/0.0825, allocations: 135.5 kB / 466.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002101/0.08272, allocations: 155.3 kB / 466.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.602e-05/0.08277, allocations: 36 kB / 466.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.053e-05/0.08283, allocations: 36 kB / 466.9 MB, free: 10 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.664e-05/0.08289, allocations: 75.75 kB / 466.9 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000132/0.08303, allocations: 175.1 kB / 467.1 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003504/0.08338, allocations: 410.9 kB / 467.5 MB, free: 9.355 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.0834, allocations: 0 / 467.5 MB, free: 9.355 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.0834, allocations: 0 / 467.5 MB, free: 9.355 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.08341, allocations: 4 kB / 467.5 MB, free: 9.352 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0008121/0.08423, allocations: 0.585 MB / 468.1 MB, free: 8.719 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.08427, allocations: 8.031 kB / 468.1 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.454e-05/0.08435, allocations: 70.72 kB / 468.2 MB, free: 8.633 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.031e-05/0.08441, allocations: 32.56 kB / 468.2 MB, free: 8.602 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002926/0.08471, allocations: 267.7 kB / 468.5 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.088e-05/0.08477, allocations: 29.03 kB / 468.5 MB, free: 8.273 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.845e-05/0.08483, allocations: 28.38 kB / 468.5 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005329/0.08537, allocations: 274 kB / 468.8 MB, free: 7.973 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.08539, allocations: 0 / 468.8 MB, free: 7.973 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.797e-05/0.08542, allocations: 12 kB / 468.8 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.08544, allocations: 8 kB / 468.8 MB, free: 7.953 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004633/0.08591, allocations: 214.4 kB / 469 MB, free: 7.742 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001441/0.08736, allocations: 1.048 MB / 470.1 MB, free: 6.617 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003455/0.08771, allocations: 146.5 kB / 470.2 MB, free: 6.465 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001675/0.08789, allocations: 84.75 kB / 470.3 MB, free: 6.379 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.996e-05/0.08792, allocations: 0 / 470.3 MB, free: 6.379 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.212e-05/0.08795, allocations: 34.56 kB / 470.3 MB, free: 6.336 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 9.52e-07/0.08796, allocations: 0 / 470.3 MB, free: 6.336 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.001356/0.08932, allocations: 0.681 MB / 471 MB, free: 5.582 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.277e-05/0.08936, allocations: 55.41 kB / 471.1 MB, free: 5.516 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001679/0.08954, allocations: 191.2 kB / 471.2 MB, free: 5.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/0.08957, allocations: 33.7 kB / 471.3 MB, free: 5.281 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.08968, allocations: 188 kB / 471.5 MB, free: 5.094 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.46e-05/0.08973, allocations: 59.16 kB / 471.5 MB, free: 5.035 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.195e-05/0.0898, allocations: 33.72 kB / 471.6 MB, free: 4.996 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.08991, allocations: 334.8 kB / 471.9 MB, free: 4.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001552/0.09008, allocations: 59.91 kB / 471.9 MB, free: 4.602 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001768/0.09026, allocations: 110.5 kB / 472.1 MB, free: 4.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003088/0.09058, allocations: 166.4 kB / 472.2 MB, free: 4.305 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.09059, allocations: 0 / 472.2 MB, free: 4.305 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004423/0.09104, allocations: 242 kB / 472.4 MB, free: 4.059 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.09106, allocations: 8 kB / 472.5 MB, free: 4.051 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.09108, allocations: 0 / 472.5 MB, free: 4.051 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001295/0.09121, allocations: 24.84 kB / 472.5 MB, free: 4.023 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001872/0.09141, allocations: 48.03 kB / 472.5 MB, free: 3.977 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009618/0.09238, allocations: 1.371 MB / 473.9 MB, free: 2.465 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001224/0.09251, allocations: 7.984 kB / 473.9 MB, free: 2.457 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.571e-05/0.09254, allocations: 8 kB / 473.9 MB, free: 2.449 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001274/0.09267, allocations: 154.3 kB / 474.1 MB, free: 2.289 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.262e-05/0.09272, allocations: 23.81 kB / 474.1 MB, free: 2.266 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.067e-05/0.09277, allocations: 21.86 kB / 474.1 MB, free: 2.246 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.09277, allocations: 0 / 474.1 MB, free: 2.246 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.09278, allocations: 3.984 kB / 474.1 MB, free: 2.242 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.09279, allocations: 0 / 474.1 MB, free: 2.242 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007966/0.09359, allocations: 0.6062 MB / 474.7 MB, free: 1.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.0936, allocations: 0 / 474.7 MB, free: 1.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002123/0.09382, allocations: 39.91 kB / 474.8 MB, free: 1.531 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.339e-05/0.0939, allocations: 20.86 kB / 474.8 MB, free: 1.508 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.605e-05/0.09393, allocations: 7.984 kB / 474.8 MB, free: 1.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000913/0.09485, allocations: 1.375 MB / 476.2 MB, free: 15.98 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.09486, allocations: 4.156 kB / 476.2 MB, free: 15.98 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005636/0.09543, allocations: 369.6 kB / 476.5 MB, free: 15.59 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.95e-05/0.09549, allocations: 92.95 kB / 476.6 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.156e-05/0.09553, allocations: 12 kB / 476.6 MB, free: 15.47 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001534/0.09569, allocations: 7.984 kB / 476.6 MB, free: 15.46 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.865e-05/0.09575, allocations: 15.98 kB / 476.7 MB, free: 15.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.073e-05/0.09576, allocations: 4 kB / 476.7 MB, free: 15.45 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001356/0.09591, allocations: 148.5 kB / 476.8 MB, free: 15.3 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.09591, allocations: 0 / 476.8 MB, free: 15.3 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003126/0.09623, allocations: 52 kB / 476.9 MB, free: 15.25 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (machine.inductor.i,machine.inertia.w,load.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 (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008567/0.09709, allocations: 0.9162 MB / 477.8 MB, free: 14.3 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005272/0.09763, allocations: 276.6 kB / 478 MB, free: 14.02 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.09765, allocations: 0 / 478 MB, free: 14.02 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003347/0.098, allocations: 197.8 kB / 478.2 MB, free: 13.82 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004259/0.09844, allocations: 39.86 kB / 478.3 MB, free: 13.78 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003116/0.1016, allocations: 2.674 MB / 480.9 MB, free: 10.98 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000289/0.1019, allocations: 0.7593 MB / 481.7 MB, free: 10.19 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.849e-05/0.102, allocations: 17.55 kB / 481.7 MB, free: 10.17 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.1021, allocations: 79.41 kB / 481.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1021, allocations: 0 / 481.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01737/0.1195, allocations: 4.441 MB / 486.2 MB, free: 5.793 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002087/0.1197, allocations: 212.2 kB / 486.4 MB, free: 5.539 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.752/1.872, allocations: 3.938 kB / 486.5 MB, free: 5.535 MB / 318.1 MB (rm -f HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; mkfifo HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe >> ../files/HanserModelica_HanserModelica.Rotational.TestDCPMMachine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Rotational_TestDCPMMachine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Rotational_TestDCPMMachine.fmu > HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe 2>&1)