Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState.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/Complex 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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: translateModel(ModelicaTest.Blocks.IntegratorForceState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gain.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState") translateModel(ModelicaTest.Blocks.IntegratorForceState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gain.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001378/0.001378, allocations: 106.2 kB / 17.21 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 194 kB / 18.12 MB, free: 5.383 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.397/1.397, allocations: 222.9 MB / 241.8 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2294/0.2294, allocations: 44.17 MB / 336.1 MB, free: 3.012 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 65.27 kB / 407.7 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.142/0.1433, allocations: 60.81 MB / 468.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegratorForceState): time 0.003067/0.1464, allocations: 1.616 MB / 470.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002522/0.1467, allocations: 59.8 kB / 470.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.47e-05/0.1468, allocations: 0 / 470.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000125/0.1469, allocations: 3.938 kB / 470.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.907e-05/0.147, allocations: 3.938 kB / 470.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001372/0.1471, allocations: 15.98 kB / 470.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001367/0.1473, allocations: 35.92 kB / 470.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001104/0.1474, allocations: 11.98 kB / 470.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.111e-05/0.1474, allocations: 11.92 kB / 470.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.938e-05/0.1475, allocations: 15.88 kB / 470.3 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.611e-05/0.1475, allocations: 4 kB / 470.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.206e-05/0.1475, allocations: 0 / 470.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.857e-05/0.1475, allocations: 7.984 kB / 470.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.765e-05/0.1476, allocations: 19.81 kB / 470.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.089e-05/0.1477, allocations: 32.17 kB / 470.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.1477, allocations: 0 / 470.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1477, allocations: 4 kB / 470.3 MB, free: 13.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.867e-06/0.1477, allocations: 0 / 470.3 MB, free: 13.01 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.0004782/0.1482, allocations: 351.4 kB / 470.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.326e-05/0.1482, allocations: 8.031 kB / 470.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.184e-05/0.1483, allocations: 12.84 kB / 470.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002362/0.1485, allocations: 176.2 kB / 470.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/0.1486, allocations: 4.375 kB / 470.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.604e-05/0.1486, allocations: 8.359 kB / 470.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001993/0.1488, allocations: 72.77 kB / 471 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.1488, allocations: 192 / 471 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.719e-05/0.1489, allocations: 7.938 kB / 471 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.1489, allocations: 0 / 471 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.159e-05/0.149, allocations: 19.98 kB / 471 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006746/0.1497, allocations: 449.2 kB / 471.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002232/0.1499, allocations: 42.56 kB / 471.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.768e-05/0.15, allocations: 12.86 kB / 471.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.654e-05/0.15, allocations: 3.938 kB / 471.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.15, allocations: 42.5 kB / 471.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.15, allocations: 0 / 471.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0005166/0.1505, allocations: 113.5 kB / 471.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.683e-05/0.1506, allocations: 55.34 kB / 471.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.548e-05/0.1507, allocations: 113.8 kB / 471.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.743e-05/0.1507, allocations: 25.7 kB / 471.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.934e-05/0.1508, allocations: 104 kB / 471.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.487e-05/0.1509, allocations: 7.812 kB / 471.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.148e-05/0.1509, allocations: 21.72 kB / 472 MB, free: 11.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.151, allocations: 322.8 kB / 472.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.973e-05/0.1511, allocations: 12 kB / 472.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.853e-05/0.1512, allocations: 39.42 kB / 472.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001254/0.1513, allocations: 63.69 kB / 472.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1513, allocations: 3.984 kB / 472.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001571/0.1515, allocations: 81.52 kB / 472.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.1515, allocations: 12.08 kB / 472.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.1515, allocations: 0 / 472.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.1516, allocations: 4 kB / 472.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.389e-05/0.1516, allocations: 11.94 kB / 472.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.1516, allocations: 4 kB / 472.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.098e-05/0.1517, allocations: 4 kB / 472.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.173e-06/0.1517, allocations: 4 kB / 472.5 MB, free: 10.58 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 0.0001126/0.1518, allocations: 121.8 kB / 472.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.297e-05/0.1519, allocations: 0 / 472.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.055e-05/0.1519, allocations: 11.91 kB / 472.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.1519, allocations: 0 / 472.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1519, allocations: 0 / 472.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.1519, allocations: 0 / 472.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001886/0.1521, allocations: 169.6 kB / 472.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.1521, allocations: 0 / 472.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.645e-05/0.1522, allocations: 15.98 kB / 472.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.1522, allocations: 0 / 472.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.1522, allocations: 4 kB / 472.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.1522, allocations: 3.938 kB / 472.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.1522, allocations: 8.312 kB / 472.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002421/0.1525, allocations: 179.4 kB / 473 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.352e-05/0.1525, allocations: 81.09 kB / 473.1 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.433e-05/0.1526, allocations: 0 / 473.1 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.189e-05/0.1526, allocations: 7.969 kB / 473.1 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.426e-05/0.1527, allocations: 0 / 473.1 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.822e-06/0.1527, allocations: 8 kB / 473.1 MB, free: 9.887 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.293e-05/0.1527, allocations: 91.33 kB / 473.2 MB, free: 9.797 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1528, allocations: 4 kB / 473.2 MB, free: 9.793 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002176/0.153, allocations: 4 kB / 473.2 MB, free: 9.789 MB / 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.0001009/0.1531, allocations: 99.66 kB / 473.3 MB, free: 9.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001433/0.1532, allocations: 39.97 kB / 473.3 MB, free: 9.641 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1532, allocations: 0 / 473.3 MB, free: 9.641 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.1e-05/0.1533, allocations: 24.11 kB / 473.4 MB, free: 9.617 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003291/0.1536, allocations: 10.67 kB / 473.4 MB, free: 9.609 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004375/0.1541, allocations: 176.2 kB / 473.5 MB, free: 9.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002753/0.1544, allocations: 0.6848 MB / 474.2 MB, free: 8.699 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.469e-05/0.1544, allocations: 4 kB / 474.2 MB, free: 8.695 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.554e-05/0.1544, allocations: 11.44 kB / 474.2 MB, free: 8.684 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1545, allocations: 3.938 kB / 474.3 MB, free: 8.68 MB / 350.1 MB Notification: Performance of Templates: time 0.002603/0.1571, allocations: 481.1 kB / 474.7 MB, free: 8.215 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/IntegratorForceState/IntegratorForceState.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches