Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.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.Limiters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|slewRateLimiter.y|limiter.y|variableLimiter.y|deadZone.y|sine.y|constPos.y|constNeg.y|slewRateLimiter.y|idealDerivative.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters") translateModel(ModelicaTest.Blocks.Limiters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|slewRateLimiter.y|limiter.y|variableLimiter.y|deadZone.y|sine.y|constPos.y|constNeg.y|slewRateLimiter.y|idealDerivative.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008776/0.0008777, allocations: 97.02 kB / 16.02 MB, free: 80 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.001092/0.001092, allocations: 182.8 kB / 16.91 MB, free: 6.914 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.225/2.225, allocations: 205.4 MB / 223.1 MB, free: 5.543 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.5007/0.5007, allocations: 43.57 MB / 315 MB, free: 8.793 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.0007586/0.0007586, allocations: 16 kB / 384.6 MB, free: 7.668 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1466/0.1473, allocations: 58.87 MB / 443.4 MB, free: 12.69 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Limiters): time 0.001985/0.1494, allocations: 1.388 MB / 444.8 MB, free: 11.29 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001371/0.1508, allocations: 0.6361 MB / 445.5 MB, free: 10.65 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001445/0.1509, allocations: 3.938 kB / 445.5 MB, free: 10.64 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.904e-05/0.151, allocations: 7.922 kB / 445.5 MB, free: 10.64 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001555/0.1511, allocations: 15.88 kB / 445.5 MB, free: 10.62 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005211/0.1516, allocations: 131.8 kB / 445.6 MB, free: 10.49 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002548/0.1519, allocations: 139.7 kB / 445.8 MB, free: 10.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002076/0.1521, allocations: 41.34 kB / 445.8 MB, free: 10.31 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001623/0.1523, allocations: 59.72 kB / 445.9 MB, free: 10.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000163/0.1525, allocations: 55.73 kB / 445.9 MB, free: 10.2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.527e-05/0.1525, allocations: 8 kB / 445.9 MB, free: 10.19 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.584e-05/0.1525, allocations: 8 kB / 445.9 MB, free: 10.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.919e-05/0.1526, allocations: 19.92 kB / 445.9 MB, free: 10.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000108/0.1527, allocations: 85.34 kB / 446 MB, free: 10.07 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002206/0.1529, allocations: 127.5 kB / 446.2 MB, free: 9.949 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.153, allocations: 7.938 kB / 446.2 MB, free: 9.941 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.467e-06/0.153, allocations: 0 / 446.2 MB, free: 9.941 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.779e-05/0.153, allocations: 0 / 446.2 MB, free: 9.941 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0008242/0.1538, allocations: 447 kB / 446.6 MB, free: 9.457 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.832e-05/0.1539, allocations: 12.03 kB / 446.6 MB, free: 9.445 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.513e-05/0.154, allocations: 16.75 kB / 446.6 MB, free: 9.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003728/0.1543, allocations: 220 kB / 446.8 MB, free: 9.176 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.504e-05/0.1544, allocations: 8.375 kB / 446.8 MB, free: 9.168 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.597e-05/0.1544, allocations: 4.375 kB / 446.9 MB, free: 9.164 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004961/0.1549, allocations: 204.4 kB / 447 MB, free: 8.949 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.155, allocations: 4 kB / 447.1 MB, free: 8.945 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.064e-05/0.155, allocations: 0 / 447.1 MB, free: 8.945 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.155, allocations: 4 kB / 447.1 MB, free: 8.941 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004273/0.1554, allocations: 155.9 kB / 447.2 MB, free: 8.789 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009046/0.1563, allocations: 476.3 kB / 447.7 MB, free: 8.273 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006487/0.157, allocations: 250.4 kB / 447.9 MB, free: 8.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000245/0.1573, allocations: 92.8 kB / 448 MB, free: 7.926 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.017e-05/0.1573, allocations: 7.922 kB / 448 MB, free: 7.918 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.527e-05/0.1573, allocations: 42.56 kB / 448.1 MB, free: 7.867 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.373e-06/0.1574, allocations: 3.938 kB / 448.1 MB, free: 7.863 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.001596/0.159, allocations: 0.654 MB / 448.7 MB, free: 7.156 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.383e-05/0.159, allocations: 106.8 kB / 448.8 MB, free: 7.027 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001489/0.1592, allocations: 167.1 kB / 449 MB, free: 6.855 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.459e-05/0.1592, allocations: 29.7 kB / 449 MB, free: 6.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.388e-05/0.1593, allocations: 112 kB / 449.1 MB, free: 6.707 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.672e-05/0.1594, allocations: 31.7 kB / 449.2 MB, free: 6.676 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.274e-05/0.1594, allocations: 13.72 kB / 449.2 MB, free: 6.656 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.1595, allocations: 326.8 kB / 449.5 MB, free: 6.328 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002285/0.1598, allocations: 87.92 kB / 449.6 MB, free: 6.242 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002502/0.16, allocations: 110.5 kB / 449.7 MB, free: 6.125 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004367/0.1605, allocations: 176.7 kB / 449.9 MB, free: 5.949 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.71e-07/0.1605, allocations: 0 / 449.9 MB, free: 5.949 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005068/0.161, allocations: 233.7 kB / 450.1 MB, free: 5.715 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.566e-05/0.1611, allocations: 96.97 kB / 450.2 MB, free: 5.613 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.269e-06/0.1611, allocations: 0 / 450.2 MB, free: 5.613 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.1611, allocations: 0 / 450.2 MB, free: 5.613 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001944/0.1613, allocations: 47.97 kB / 450.2 MB, free: 5.566 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.303e-06/0.1613, allocations: 3.984 kB / 450.2 MB, free: 5.562 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001422/0.1615, allocations: 35.98 kB / 450.3 MB, free: 5.527 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.265e-05/0.1615, allocations: 4.531 kB / 450.3 MB, free: 5.523 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.656e-06/0.1615, allocations: 7.75 kB / 450.3 MB, free: 5.52 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002181/0.1617, allocations: 91.89 kB / 450.4 MB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-06/0.1617, allocations: 0 / 450.4 MB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-06/0.1617, allocations: 4 kB / 450.4 MB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.262e-05/0.1618, allocations: 27.98 kB / 450.4 MB, free: 5.398 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.633e-06/0.1618, allocations: 0 / 450.4 MB, free: 5.398 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.396e-05/0.1619, allocations: 11.98 kB / 450.4 MB, free: 5.387 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.951e-06/0.1619, allocations: 7.938 kB / 450.4 MB, free: 5.379 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (10): * Single equations (assignments): 10 * 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.0001372/0.1621, allocations: 205 kB / 450.6 MB, free: 5.168 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.655e-05/0.1621, allocations: 15.81 kB / 450.6 MB, free: 5.152 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.92e-05/0.1622, allocations: 21.38 kB / 450.7 MB, free: 5.133 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.1622, allocations: 0 / 450.7 MB, free: 5.133 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/0.1622, allocations: 4 kB / 450.7 MB, free: 5.129 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.1622, allocations: 7.875 kB / 450.7 MB, free: 5.121 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009137/0.1631, allocations: 0.5538 MB / 451.2 MB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.1631, allocations: 0 / 451.2 MB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000176/0.1633, allocations: 48 kB / 451.3 MB, free: 4.461 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.1633, allocations: 7.938 kB / 451.3 MB, free: 4.453 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/0.1634, allocations: 0 / 451.3 MB, free: 4.453 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1634, allocations: 0 / 451.3 MB, free: 4.453 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.407e-06/0.1634, allocations: 7.984 kB / 451.3 MB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007889/0.1642, allocations: 412.2 kB / 451.7 MB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.95e-05/0.1642, allocations: 88.98 kB / 451.8 MB, free: 3.918 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.786e-05/0.1643, allocations: 15.86 kB / 451.8 MB, free: 3.902 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002692/0.1645, allocations: 60.02 kB / 451.8 MB, free: 3.844 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.071e-05/0.1646, allocations: 4 kB / 451.8 MB, free: 3.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.962e-05/0.1646, allocations: 11.98 kB / 451.9 MB, free: 3.828 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.792e-05/0.1647, allocations: 123.2 kB / 452 MB, free: 3.707 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1647, allocations: 0 / 452 MB, free: 3.707 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002865/0.165, allocations: 36 kB / 452 MB, free: 3.672 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealDerivative.u) * 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 (9): * Single equations (assignments): 9 * 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.0001252/0.1651, allocations: 99.23 kB / 452.1 MB, free: 3.566 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006387/0.1658, allocations: 235.8 kB / 452.3 MB, free: 3.336 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1658, allocations: 0 / 452.3 MB, free: 3.336 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002358/0.166, allocations: 99.94 kB / 452.4 MB, free: 3.238 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004179/0.1665, allocations: 31.97 kB / 452.5 MB, free: 3.207 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006824/0.1672, allocations: 360.5 kB / 452.8 MB, free: 2.824 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002899/0.1675, allocations: 0.7165 MB / 453.5 MB, free: 2.082 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.337e-05/0.1676, allocations: 16.88 kB / 453.6 MB, free: 2.062 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.236e-05/0.1676, allocations: 15.44 kB / 453.6 MB, free: 2.047 MB / 382.1 MB Notification: Performance of SimCode: time 9.22e-07/0.1676, allocations: 0 / 453.6 MB, free: 2.047 MB / 382.1 MB Notification: Performance of Templates: time 0.2912/0.4588, allocations: 2.064 MB / 455.6 MB, free: 46.06 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Limiters/Limiters.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches