Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegratorForceState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.IntegratorForceState,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_IntegratorForceState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.IntegratorForceState,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_IntegratorForceState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001624/0.001624, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001887/0.001887, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.534/1.534, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2726/0.2726, allocations: 46.12 MB / 344.2 MB, free: 11.54 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002173/0.002174, allocations: 76.53 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.148/0.1502, allocations: 62.46 MB / 480.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegratorForceState): time 0.002951/0.1532, allocations: 1.562 MB / 481.8 MB, free: 3.555 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002308/0.1534, allocations: 71.77 kB / 481.8 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.278e-05/0.1535, allocations: 0 / 481.8 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.99e-05/0.1536, allocations: 19.86 kB / 481.9 MB, free: 3.465 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.667e-05/0.1536, allocations: 3.938 kB / 481.9 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001047/0.1537, allocations: 15.98 kB / 481.9 MB, free: 3.445 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.131e-05/0.1538, allocations: 35.86 kB / 481.9 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.469e-05/0.1539, allocations: 11.98 kB / 481.9 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.189e-05/0.154, allocations: 8 kB / 481.9 MB, free: 3.391 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.974e-05/0.154, allocations: 23.84 kB / 482 MB, free: 3.367 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.223e-05/0.154, allocations: 4 kB / 482 MB, free: 3.363 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.027e-06/0.154, allocations: 4 kB / 482 MB, free: 3.359 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.473e-05/0.1541, allocations: 4 kB / 482 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.808e-05/0.1541, allocations: 15.88 kB / 482 MB, free: 3.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.767e-05/0.1542, allocations: 28.19 kB / 482 MB, free: 3.312 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.1542, allocations: 3.984 kB / 482 MB, free: 3.309 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1542, allocations: 0 / 482 MB, free: 3.309 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.1542, allocations: 0 / 482 MB, free: 3.309 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003797/0.1546, allocations: 347.4 kB / 482.4 MB, free: 2.918 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.837e-05/0.1546, allocations: 11.97 kB / 482.4 MB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.388e-05/0.1547, allocations: 42.73 kB / 482.4 MB, free: 2.855 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.452e-05/0.1547, allocations: 8.844 kB / 482.4 MB, free: 2.848 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001506/0.1549, allocations: 188.2 kB / 482.6 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.091e-06/0.1549, allocations: 4.312 kB / 482.6 MB, free: 2.621 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.047e-05/0.1549, allocations: 8.375 kB / 482.6 MB, free: 2.613 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001195/0.155, allocations: 64.81 kB / 482.7 MB, free: 2.535 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.155, allocations: 7.875 kB / 482.7 MB, free: 2.527 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.264e-06/0.1551, allocations: 8 kB / 482.7 MB, free: 2.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.1551, allocations: 4 kB / 482.7 MB, free: 2.516 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.87e-05/0.1551, allocations: 19.98 kB / 482.7 MB, free: 2.496 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004183/0.1556, allocations: 441.2 kB / 483.1 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001278/0.1557, allocations: 42.56 kB / 483.2 MB, free: 1.957 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.062e-05/0.1558, allocations: 20.94 kB / 483.2 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.247e-05/0.1558, allocations: 0 / 483.2 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.253e-05/0.1558, allocations: 30.56 kB / 483.2 MB, free: 1.895 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 7.61e-07/0.1558, allocations: 0 / 483.2 MB, free: 1.895 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004302/0.1563, allocations: 117.7 kB / 483.4 MB, free: 1.773 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.762e-05/0.1563, allocations: 51.41 kB / 483.4 MB, free: 1.711 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.735e-05/0.1564, allocations: 113.8 kB / 483.5 MB, free: 1.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.624e-05/0.1564, allocations: 29.64 kB / 483.5 MB, free: 1.555 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.079e-05/0.1565, allocations: 99.97 kB / 483.6 MB, free: 1.453 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.259e-05/0.1565, allocations: 11.81 kB / 483.7 MB, free: 1.441 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.287e-05/0.1566, allocations: 21.72 kB / 483.7 MB, free: 1.414 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.1567, allocations: 326.8 kB / 484 MB, free: 1.086 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.649e-05/0.1568, allocations: 11.98 kB / 484 MB, free: 1.074 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.368e-05/0.1568, allocations: 43.47 kB / 484 MB, free: 1.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000116/0.1569, allocations: 67.33 kB / 484.1 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.157, allocations: 0 / 484.1 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001569/0.1571, allocations: 85.52 kB / 484.2 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/0.1571, allocations: 4 kB / 484.2 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.1571, allocations: 4 kB / 484.2 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.358e-06/0.1572, allocations: 0 / 484.2 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.783e-05/0.1572, allocations: 8 kB / 484.2 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.1572, allocations: 7.938 kB / 484.2 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.759e-05/0.1573, allocations: 8.078 kB / 484.2 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.817e-06/0.1573, allocations: 4 kB / 484.2 MB, free: 0.8164 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.226e-05/0.1574, allocations: 117.8 kB / 484.3 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.637e-05/0.1574, allocations: 4 kB / 484.3 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.368e-05/0.1574, allocations: 15.84 kB / 484.4 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.532e-06/0.1574, allocations: 0 / 484.4 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.1575, allocations: 0 / 484.4 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.473e-06/0.1575, allocations: 0 / 484.4 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00017/0.1576, allocations: 169.6 kB / 484.5 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.1576, allocations: 8 kB / 484.5 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.848e-05/0.1577, allocations: 11.98 kB / 484.5 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.1577, allocations: 0 / 484.5 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.122e-06/0.1577, allocations: 0 / 484.5 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.1577, allocations: 0 / 484.5 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1577, allocations: 0 / 484.5 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002298/0.158, allocations: 187.3 kB / 484.7 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.1e-05/0.158, allocations: 81.17 kB / 484.8 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.325e-05/0.1581, allocations: 4.031 kB / 484.8 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.695e-05/0.1581, allocations: 384 / 484.8 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.406e-05/0.1581, allocations: 3.984 kB / 484.8 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-06/0.1581, allocations: 4 kB / 484.8 MB, free: 128 kB / 350.1 MB Notification: Performance of sorting global known variables: time 5.435e-05/0.1582, allocations: 91.22 kB / 484.9 MB, free: 36 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1582, allocations: 0 / 484.9 MB, free: 36 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002139/0.1584, allocations: 7.938 kB / 484.9 MB, free: 28 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (gain.y) * 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 (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005418/0.159, allocations: 0.7085 MB / 485.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001391/0.1591, allocations: 43.91 kB / 485.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1591, allocations: 0 / 485.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.617e-05/0.1592, allocations: 20.22 kB / 485.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002808/0.1595, allocations: 14.48 kB / 485.7 MB, free: 15.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001405/0.1609, allocations: 1.371 MB / 487.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00032/0.1612, allocations: 0.6846 MB / 487.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.492e-05/0.1613, allocations: 0 / 487.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.087e-05/0.1613, allocations: 19.42 kB / 487.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1613, allocations: 0 / 487.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02374/0.185, allocations: 1.487 MB / 489.3 MB, free: 11.6 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.671/7.856, allocations: 5.016 kB / 489.3 MB, free: 11.6 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegratorForceState.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegratorForceState.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegratorForceState.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegratorForceState.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegratorForceState_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_IntegratorForceState_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_IntegratorForceState.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegratorForceState.pipe 2>&1)