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.001719/0.001719, allocations: 109.3 kB / 18.39 MB, free: 4.629 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.001612/0.001612, allocations: 184.1 kB / 19.33 MB, free: 3.699 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.391/1.391, allocations: 222.9 MB / 243 MB, free: 15.15 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.2173/0.2173, allocations: 44.19 MB / 337.4 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 64.19 kB / 409.9 MB, free: 26.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1356, allocations: 60.83 MB / 470.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegratorForceState): time 0.003344/0.139, allocations: 1.543 MB / 472.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002489/0.1393, allocations: 55.81 kB / 472.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.28e-05/0.1394, allocations: 0 / 472.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000131/0.1395, allocations: 7.922 kB / 472.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.775e-05/0.1396, allocations: 3.938 kB / 472.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001489/0.1397, allocations: 19.97 kB / 472.3 MB, free: 12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001346/0.1399, allocations: 39.86 kB / 472.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001222/0.14, allocations: 11.98 kB / 472.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3e-05/0.14, allocations: 11.94 kB / 472.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.826e-05/0.1401, allocations: 19.86 kB / 472.4 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.671e-05/0.1401, allocations: 4 kB / 472.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.252e-05/0.1402, allocations: 4 kB / 472.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.627e-05/0.1402, allocations: 4 kB / 472.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.309e-05/0.1402, allocations: 15.88 kB / 472.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001112/0.1403, allocations: 35.88 kB / 472.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.1403, allocations: 0 / 472.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1404, allocations: 0 / 472.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.1404, allocations: 3.938 kB / 472.5 MB, free: 11.85 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.0005587/0.1409, allocations: 359.4 kB / 472.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.141, allocations: 8.031 kB / 472.8 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.205e-05/0.141, allocations: 8.844 kB / 472.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002649/0.1413, allocations: 184.1 kB / 473 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.427e-05/0.1413, allocations: 8.359 kB / 473 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.662e-05/0.1414, allocations: 4.375 kB / 473 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001898/0.1416, allocations: 76.81 kB / 473.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.1416, allocations: 192 / 473.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.223e-05/0.1416, allocations: 3.938 kB / 473.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.1416, allocations: 0 / 473.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.816e-05/0.1417, allocations: 31.92 kB / 473.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005011/0.1422, allocations: 441.2 kB / 473.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001766/0.1424, allocations: 50.5 kB / 473.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.84e-05/0.1425, allocations: 12.94 kB / 473.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.226e-05/0.1425, allocations: 0 / 473.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/0.1425, allocations: 34.56 kB / 473.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.1426, allocations: 4 kB / 473.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004555/0.143, allocations: 109.4 kB / 473.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.624e-05/0.1431, allocations: 51.41 kB / 473.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.274e-05/0.1432, allocations: 109.8 kB / 473.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.584e-05/0.1432, allocations: 33.7 kB / 474 MB, free: 10.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.696e-05/0.1432, allocations: 87.98 kB / 474.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.794e-05/0.1433, allocations: 23.8 kB / 474.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.689e-05/0.1433, allocations: 17.72 kB / 474.1 MB, free: 10 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.1435, allocations: 322.8 kB / 474.4 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.697e-05/0.1435, allocations: 12 kB / 474.4 MB, free: 9.664 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.134e-05/0.1436, allocations: 43.36 kB / 474.5 MB, free: 9.609 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001155/0.1437, allocations: 55.42 kB / 474.5 MB, free: 9.543 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.1437, allocations: 0 / 474.5 MB, free: 9.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001556/0.1439, allocations: 89.45 kB / 474.6 MB, free: 9.449 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.1439, allocations: 8 kB / 474.6 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.1439, allocations: 384 / 474.6 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.1439, allocations: 96 / 474.6 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.471e-05/0.144, allocations: 19.98 kB / 474.6 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.144, allocations: 0 / 474.6 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.845e-05/0.1441, allocations: 7.938 kB / 474.6 MB, free: 9.414 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.411e-06/0.1441, allocations: 0 / 474.6 MB, free: 9.414 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.0001064/0.1442, allocations: 121.7 kB / 474.8 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.449e-05/0.1442, allocations: 8.312 kB / 474.8 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.972e-05/0.1442, allocations: 11.89 kB / 474.8 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.1443, allocations: 0 / 474.8 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.1443, allocations: 7.984 kB / 474.8 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.1443, allocations: 0 / 474.8 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001897/0.1445, allocations: 173.6 kB / 475 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.1445, allocations: 0 / 475 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.452e-05/0.1446, allocations: 11.98 kB / 475 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.1446, allocations: 0 / 475 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.726e-06/0.1446, allocations: 0 / 475 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1446, allocations: 0 / 475 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1446, allocations: 0 / 475 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002494/0.1448, allocations: 187.3 kB / 475.2 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.176e-05/0.1449, allocations: 81.14 kB / 475.2 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.951e-05/0.1449, allocations: 3.984 kB / 475.2 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.28e-05/0.145, allocations: 4 kB / 475.2 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.707e-05/0.145, allocations: 4 kB / 475.2 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.226e-06/0.1451, allocations: 0 / 475.2 MB, free: 8.719 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.513e-05/0.1451, allocations: 91.27 kB / 475.3 MB, free: 8.629 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1451, allocations: 0 / 475.3 MB, free: 8.629 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002312/0.1454, allocations: 12.06 kB / 475.3 MB, free: 8.617 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 9.696e-05/0.1455, allocations: 95.19 kB / 475.4 MB, free: 8.512 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001622/0.1456, allocations: 43.91 kB / 475.5 MB, free: 8.469 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.1456, allocations: 0 / 475.5 MB, free: 8.469 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.429e-05/0.1457, allocations: 12 kB / 475.5 MB, free: 8.457 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/0.146, allocations: 11.98 kB / 475.5 MB, free: 8.445 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004651/0.1464, allocations: 170.9 kB / 475.7 MB, free: 8.254 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002844/0.1467, allocations: 0.6884 MB / 476.4 MB, free: 7.539 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.113e-05/0.1468, allocations: 3.984 kB / 476.4 MB, free: 7.535 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.54e-05/0.1468, allocations: 15.38 kB / 476.4 MB, free: 7.52 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1468, allocations: 0 / 476.4 MB, free: 7.52 MB / 350.1 MB Notification: Performance of Templates: time 0.002669/0.1495, allocations: 0.5017 MB / 476.9 MB, free: 7.02 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/IntegratorForceState/IntegratorForceState.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches