Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Blocks.IntegratorForceState") translateModel(ModelicaTest.Blocks.IntegratorForceState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gain.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009994/0.0009996, allocations: 96.86 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001894/0.001894, allocations: 173.6 kB / 16.58 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.301/2.301, allocations: 205.4 MB / 222.8 MB, free: 5.887 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5352/0.5352, allocations: 43.56 MB / 314.6 MB, free: 8.621 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006097/0.00061, allocations: 16 kB / 384 MB, free: 8.027 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1781/0.1787, allocations: 58.86 MB / 442.8 MB, free: 13.06 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegratorForceState): time 0.002357/0.1812, allocations: 1.257 MB / 444.1 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003317/0.1815, allocations: 55.84 kB / 444.1 MB, free: 11.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001044/0.1817, allocations: 3.938 kB / 444.1 MB, free: 11.73 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001351/0.1818, allocations: 3.984 kB / 444.1 MB, free: 11.73 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.753e-05/0.1819, allocations: 7.922 kB / 444.1 MB, free: 11.72 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001803/0.1821, allocations: 11.98 kB / 444.1 MB, free: 11.71 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001311/0.1822, allocations: 31.86 kB / 444.2 MB, free: 11.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/0.1824, allocations: 12 kB / 444.2 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.295e-05/0.1824, allocations: 11.98 kB / 444.2 MB, free: 11.65 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.734e-05/0.1825, allocations: 11.88 kB / 444.2 MB, free: 11.64 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.199e-05/0.1825, allocations: 4 kB / 444.2 MB, free: 11.64 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.285e-05/0.1825, allocations: 0 / 444.2 MB, free: 11.64 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.327e-05/0.1826, allocations: 0 / 444.2 MB, free: 11.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.238e-05/0.1826, allocations: 33.7 kB / 444.3 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001102/0.1827, allocations: 28.16 kB / 444.3 MB, free: 11.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.1827, allocations: 0 / 444.3 MB, free: 11.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.577e-06/0.1828, allocations: 4 kB / 444.3 MB, free: 11.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.1828, allocations: 0 / 444.3 MB, free: 11.57 MB / 382.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.0006004/0.1834, allocations: 347.2 kB / 444.6 MB, free: 11.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.85e-05/0.1834, allocations: 12.03 kB / 444.6 MB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.262e-05/0.1835, allocations: 0 / 444.6 MB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002717/0.1838, allocations: 186.9 kB / 444.8 MB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.1838, allocations: 0 / 444.8 MB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.87e-05/0.1838, allocations: 4 kB / 444.8 MB, free: 10.94 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002365/0.1841, allocations: 72.25 kB / 444.9 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.1841, allocations: 7.938 kB / 444.9 MB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.679e-05/0.1841, allocations: 0 / 444.9 MB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.1841, allocations: 3.938 kB / 444.9 MB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001081/0.1843, allocations: 23.98 kB / 444.9 MB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006896/0.185, allocations: 457.2 kB / 445.4 MB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001958/0.1852, allocations: 42.56 kB / 445.4 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.035e-05/0.1852, allocations: 24.94 kB / 445.4 MB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.132e-05/0.1853, allocations: 4 kB / 445.4 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.019e-05/0.1853, allocations: 30.56 kB / 445.5 MB, free: 10.2 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 4.789e-06/0.1853, allocations: 7.922 kB / 445.5 MB, free: 10.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=4): time 0.0005712/0.1859, allocations: 117.4 kB / 445.6 MB, free: 10.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.462e-05/0.186, allocations: 59.39 kB / 445.7 MB, free: 9.996 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.1861, allocations: 118 kB / 445.8 MB, free: 9.867 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.6e-05/0.1861, allocations: 25.7 kB / 445.8 MB, free: 9.836 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.165e-05/0.1862, allocations: 91.98 kB / 445.9 MB, free: 9.742 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.981e-05/0.1862, allocations: 19.8 kB / 445.9 MB, free: 9.723 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.629e-06/0.1862, allocations: 0 / 445.9 MB, free: 9.723 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.1864, allocations: 310.8 kB / 446.2 MB, free: 9.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.434e-05/0.1864, allocations: 23.98 kB / 446.2 MB, free: 9.387 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.822e-05/0.1865, allocations: 43.41 kB / 446.3 MB, free: 9.332 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.207e-05/0.1866, allocations: 20 kB / 446.3 MB, free: 9.312 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.1866, allocations: 4 kB / 446.3 MB, free: 9.309 MB / 382.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001919/0.1868, allocations: 85.52 kB / 446.4 MB, free: 9.219 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/0.1868, allocations: 7.938 kB / 446.4 MB, free: 9.211 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.1868, allocations: 0 / 446.4 MB, free: 9.211 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/0.1869, allocations: 7.953 kB / 446.4 MB, free: 9.203 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.511e-05/0.1869, allocations: 11.98 kB / 446.4 MB, free: 9.191 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.707e-06/0.1869, allocations: 4 kB / 446.4 MB, free: 9.188 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.041e-05/0.187, allocations: 12.09 kB / 446.4 MB, free: 9.176 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.187, allocations: 0 / 446.4 MB, free: 9.176 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001129/0.1871, allocations: 117.8 kB / 446.5 MB, free: 9.051 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.38e-05/0.1872, allocations: 4 kB / 446.5 MB, free: 9.047 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.026e-05/0.1872, allocations: 7.891 kB / 446.5 MB, free: 9.039 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.1872, allocations: 0 / 446.5 MB, free: 9.039 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/0.1872, allocations: 7.953 kB / 446.6 MB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.1872, allocations: 0 / 446.6 MB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001956/0.1874, allocations: 173.7 kB / 446.7 MB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.1874, allocations: 7.938 kB / 446.7 MB, free: 8.805 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.755e-05/0.1875, allocations: 11.94 kB / 446.7 MB, free: 8.793 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.618e-06/0.1875, allocations: 0 / 446.7 MB, free: 8.793 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/0.1876, allocations: 7.984 kB / 446.8 MB, free: 8.785 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.1876, allocations: 384 / 446.8 MB, free: 8.785 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.1876, allocations: 0 / 446.8 MB, free: 8.785 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002796/0.1879, allocations: 183.4 kB / 446.9 MB, free: 8.59 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.835e-05/0.1879, allocations: 77.11 kB / 447 MB, free: 8.496 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.545e-05/0.1879, allocations: 3.938 kB / 447 MB, free: 8.492 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.187e-05/0.188, allocations: 12.02 kB / 447 MB, free: 8.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.878e-05/0.1881, allocations: 0 / 447 MB, free: 8.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.539e-06/0.1881, allocations: 4 kB / 447 MB, free: 8.477 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.952e-05/0.1881, allocations: 95.22 kB / 447.1 MB, free: 8.383 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1881, allocations: 4 kB / 447.1 MB, free: 8.379 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002242/0.1884, allocations: 8 kB / 447.1 MB, free: 8.371 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001261/0.1885, allocations: 91.25 kB / 447.2 MB, free: 8.273 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001632/0.1887, allocations: 44.39 kB / 447.3 MB, free: 8.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.1887, allocations: 0 / 447.3 MB, free: 8.23 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.915e-05/0.1887, allocations: 20.12 kB / 447.3 MB, free: 8.211 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003523/0.1891, allocations: 11.98 kB / 447.3 MB, free: 8.199 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005034/0.1896, allocations: 181.1 kB / 447.5 MB, free: 7.992 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003159/0.19, allocations: 0.6848 MB / 448.2 MB, free: 7.281 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.38e-05/0.19, allocations: 8.188 kB / 448.2 MB, free: 7.273 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.942e-05/0.19, allocations: 7.438 kB / 448.2 MB, free: 7.27 MB / 382.1 MB Notification: Performance of SimCode: time 1.032e-06/0.1901, allocations: 3.938 kB / 448.2 MB, free: 7.266 MB / 382.1 MB Notification: Performance of Templates: time 0.003355/0.1934, allocations: 444.4 kB / 448.6 MB, free: 6.832 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/IntegratorForceState/IntegratorForceState.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches