Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.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.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings") translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001466/0.001466, allocations: 106.8 kB / 17.33 MB, free: 5.996 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.00189/0.001891, allocations: 193.3 kB / 18.25 MB, free: 5.086 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.438/1.438, allocations: 222.9 MB / 241.9 MB, free: 15.38 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.2016/0.2016, allocations: 44.18 MB / 336.2 MB, free: 2.93 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 64.16 kB / 407.9 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1126, allocations: 60.82 MB / 468.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001691/0.1143, allocations: 0.5332 MB / 469.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002304/0.1166, allocations: 1.315 MB / 470.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.764e-05/0.1167, allocations: 0 / 470.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.602e-05/0.1167, allocations: 0 / 470.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.35e-06/0.1167, allocations: 0 / 470.6 MB, free: 12.88 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:4:3-220:14:writable] Warning: Pure function ‘ModelicaTest.Utilities.Strings‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001494/0.1182, allocations: 0.5107 MB / 471.1 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.665e-05/0.1183, allocations: 4 kB / 471.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.759e-05/0.1183, allocations: 4 kB / 471.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.616e-05/0.1183, allocations: 0 / 471.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.149e-05/0.1184, allocations: 0 / 471.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.69e-06/0.1184, allocations: 0 / 471.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0273/0.1457, allocations: 2.493 MB / 473.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.032e-05/0.1457, allocations: 0 / 473.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.373e-05/0.1457, allocations: 0 / 473.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002875/0.146, allocations: 163.8 kB / 473.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.146, allocations: 0 / 473.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.146, allocations: 4 kB / 473.7 MB, free: 10.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.538e-06/0.1461, allocations: 0 / 473.7 MB, free: 10.22 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003591/0.1464, allocations: 389.2 kB / 474.1 MB, free: 9.789 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.1465, allocations: 8.031 kB / 474.1 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.905e-05/0.1465, allocations: 0.9375 kB / 474.1 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001001/0.1466, allocations: 160.4 kB / 474.3 MB, free: 9.586 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.016e-05/0.1466, allocations: 384 / 474.3 MB, free: 9.586 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.408e-05/0.1466, allocations: 4.375 kB / 474.3 MB, free: 9.582 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.156e-05/0.1467, allocations: 33.83 kB / 474.3 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.1468, allocations: 0 / 474.3 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.1468, allocations: 3.938 kB / 474.3 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.1468, allocations: 4 kB / 474.3 MB, free: 9.535 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.969e-05/0.1468, allocations: 3.984 kB / 474.3 MB, free: 9.531 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001444/0.147, allocations: 145.7 kB / 474.5 MB, free: 9.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.156e-05/0.147, allocations: 18.61 kB / 474.5 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.709e-05/0.147, allocations: 4.859 kB / 474.5 MB, free: 9.305 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.182e-06/0.147, allocations: 7.984 kB / 474.5 MB, free: 9.297 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.991e-05/0.1471, allocations: 60.2 kB / 474.6 MB, free: 9.223 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.373e-06/0.1471, allocations: 0 / 474.6 MB, free: 9.223 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002036/0.1473, allocations: 71.39 kB / 474.6 MB, free: 9.141 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.634e-05/0.1474, allocations: 81.11 kB / 474.7 MB, free: 9.043 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.069e-05/0.1475, allocations: 89.86 kB / 474.8 MB, free: 8.945 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.544e-05/0.1475, allocations: 29.64 kB / 474.8 MB, free: 8.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.232e-05/0.1475, allocations: 80.27 kB / 474.9 MB, free: 8.828 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.351e-05/0.1475, allocations: 4 kB / 474.9 MB, free: 8.824 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.928e-05/0.1476, allocations: 13.72 kB / 474.9 MB, free: 8.805 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.1477, allocations: 314.8 kB / 475.2 MB, free: 8.488 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.22e-05/0.1477, allocations: 4 kB / 475.2 MB, free: 8.484 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.34e-06/0.1477, allocations: 0 / 475.2 MB, free: 8.484 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.286e-05/0.1478, allocations: 68.2 kB / 475.3 MB, free: 8.402 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1478, allocations: 0 / 475.3 MB, free: 8.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.93e-05/0.1479, allocations: 63.47 kB / 475.4 MB, free: 8.328 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.343e-05/0.1479, allocations: 37.62 kB / 475.4 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.148, allocations: 0 / 475.4 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.148, allocations: 0 / 475.4 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.148, allocations: 4 kB / 475.4 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.148, allocations: 0 / 475.4 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.651e-05/0.148, allocations: 3.938 kB / 475.4 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.586e-06/0.148, allocations: 0 / 475.4 MB, free: 8.277 MB / 350.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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 9.241e-05/0.1481, allocations: 139.5 kB / 475.5 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.528e-06/0.1481, allocations: 7.969 kB / 475.5 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.262e-05/0.1482, allocations: 7.078 kB / 475.6 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.1482, allocations: 3.984 kB / 475.6 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.1482, allocations: 0 / 475.6 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.1482, allocations: 0 / 475.6 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001096/0.1483, allocations: 145.7 kB / 475.7 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1483, allocations: 0 / 475.7 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1483, allocations: 0 / 475.7 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.1483, allocations: 3.938 kB / 475.7 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.1483, allocations: 0 / 475.7 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.1483, allocations: 3.938 kB / 475.7 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1483, allocations: 4 kB / 475.7 MB, free: 7.902 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001013/0.1485, allocations: 90.83 kB / 475.8 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.719e-05/0.1485, allocations: 81.05 kB / 475.9 MB, free: 7.691 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.734e-05/0.1485, allocations: 7.984 kB / 475.9 MB, free: 7.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.856e-06/0.1485, allocations: 0 / 475.9 MB, free: 7.684 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.075e-05/0.1486, allocations: 0 / 475.9 MB, free: 7.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.378e-06/0.1486, allocations: 0 / 475.9 MB, free: 7.684 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.998e-05/0.1486, allocations: 83.25 kB / 476 MB, free: 7.602 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1486, allocations: 0 / 476 MB, free: 7.602 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003109/0.1489, allocations: 71.98 kB / 476 MB, free: 7.531 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0009014/0.1498, allocations: 405.7 kB / 476.4 MB, free: 7.207 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.615e-05/0.1499, allocations: 71.34 kB / 476.5 MB, free: 7.125 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1499, allocations: 0 / 476.5 MB, free: 7.125 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.296e-05/0.15, allocations: 55.41 kB / 476.6 MB, free: 7.059 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001335/0.1501, allocations: 3.984 kB / 476.6 MB, free: 7.055 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001883/0.1503, allocations: 80.84 kB / 476.6 MB, free: 6.949 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002528/0.1506, allocations: 0.669 MB / 477.3 MB, free: 6.254 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.966e-06/0.1506, allocations: 0 / 477.3 MB, free: 6.254 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.573e-05/0.1506, allocations: 15.38 kB / 477.3 MB, free: 6.238 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1506, allocations: 4.125 kB / 477.3 MB, free: 6.234 MB / 350.1 MB Notification: Performance of Templates: time 0.004527/0.1552, allocations: 2.138 MB / 479.5 MB, free: 4.105 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStrings/TestStrings.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches