Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings") translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001124/0.001124, allocations: 100.6 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009647/0.0009647, allocations: 200 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.507/1.507, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2061/0.2061, allocations: 45.91 MB / 344 MB, free: 12.15 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003012/0.0003012, allocations: 8 kB / 417.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1455, allocations: 63.47 MB / 481.4 MB, free: 5.422 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.0007676/0.1463, allocations: 193.2 kB / 481.6 MB, free: 5.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002641/0.149, allocations: 1.232 MB / 482.8 MB, free: 3.996 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.588e-05/0.149, allocations: 0 / 482.8 MB, free: 3.996 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.094e-05/0.149, allocations: 4 kB / 482.8 MB, free: 3.992 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.649e-06/0.1491, allocations: 0 / 482.8 MB, free: 3.992 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:4:3-219: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.001131/0.1502, allocations: 446.9 kB / 483.2 MB, free: 3.555 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.2e-05/0.1502, allocations: 0 / 483.2 MB, free: 3.555 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.154e-05/0.1503, allocations: 0 / 483.2 MB, free: 3.555 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2e-05/0.1503, allocations: 0 / 483.2 MB, free: 3.555 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.633e-05/0.1503, allocations: 7.938 kB / 483.2 MB, free: 3.547 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.444e-06/0.1504, allocations: 0 / 483.2 MB, free: 3.547 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001024/0.1514, allocations: 0.6438 MB / 483.9 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.163e-06/0.1514, allocations: 0 / 483.9 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.821e-05/0.1514, allocations: 29.7 kB / 483.9 MB, free: 2.867 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000471/0.1519, allocations: 355.4 kB / 484.3 MB, free: 2.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.1519, allocations: 0 / 484.3 MB, free: 2.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1519, allocations: 0 / 484.3 MB, free: 2.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.142e-06/0.1519, allocations: 0 / 484.3 MB, free: 2.52 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.0005826/0.1525, allocations: 469 kB / 484.7 MB, free: 2.008 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.1526, allocations: 12.03 kB / 484.7 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.107e-05/0.1526, allocations: 0 / 484.7 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001044/0.1527, allocations: 163 kB / 484.9 MB, free: 1.797 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.117e-05/0.1527, allocations: 4 kB / 484.9 MB, free: 1.793 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.203e-05/0.1528, allocations: 0 / 484.9 MB, free: 1.793 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001319/0.1529, allocations: 33.62 kB / 484.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.164e-06/0.1529, allocations: 0 / 484.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.538e-06/0.1529, allocations: 4 kB / 484.9 MB, free: 1.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.1529, allocations: 0 / 484.9 MB, free: 1.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.698e-05/0.153, allocations: 0 / 484.9 MB, free: 1.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001505/0.1531, allocations: 153.6 kB / 485.1 MB, free: 1.551 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001214/0.1532, allocations: 26.61 kB / 485.1 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.646e-06/0.1533, allocations: 0 / 485.1 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.24e-05/0.1533, allocations: 60.25 kB / 485.2 MB, free: 1.441 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.1533, allocations: 0 / 485.2 MB, free: 1.441 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002183/0.1536, allocations: 63.41 kB / 485.2 MB, free: 1.367 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.671e-05/0.1536, allocations: 81.23 kB / 485.3 MB, free: 1.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.495e-05/0.1537, allocations: 93.86 kB / 485.4 MB, free: 1.168 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.139e-05/0.1537, allocations: 29.7 kB / 485.4 MB, free: 1.133 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.703e-05/0.1538, allocations: 80.14 kB / 485.5 MB, free: 1.051 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.83e-05/0.1538, allocations: 0 / 485.5 MB, free: 1.051 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.149e-06/0.1538, allocations: 0 / 485.5 MB, free: 1.051 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002189/0.1541, allocations: 318.8 kB / 485.8 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.047e-06/0.1541, allocations: 0 / 485.8 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.163e-06/0.1541, allocations: 4 kB / 485.8 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.472e-05/0.1541, allocations: 29.77 kB / 485.9 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1541, allocations: 0 / 485.9 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.058e-05/0.1542, allocations: 67.3 kB / 485.9 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001624/0.1544, allocations: 37.69 kB / 486 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.1544, allocations: 0 / 486 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.1544, allocations: 0 / 486 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.277e-06/0.1544, allocations: 4 kB / 486 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.1545, allocations: 0 / 486 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.798e-05/0.1545, allocations: 0 / 486 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.008e-05/0.1545, allocations: 0 / 486 MB, free: 0.5664 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001085/0.1546, allocations: 139.6 kB / 486.1 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.015e-06/0.1546, allocations: 3.953 kB / 486.1 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.967e-06/0.1546, allocations: 3.125 kB / 486.1 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.1546, allocations: 0 / 486.1 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.1547, allocations: 4 kB / 486.1 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.1547, allocations: 3.984 kB / 486.1 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001201/0.1548, allocations: 145.7 kB / 486.3 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.1548, allocations: 0 / 486.3 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1548, allocations: 0 / 486.3 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.1548, allocations: 7.953 kB / 486.3 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.564e-06/0.1548, allocations: 0 / 486.3 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.1548, allocations: 0 / 486.3 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1548, allocations: 0 / 486.3 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001992/0.155, allocations: 94.77 kB / 486.4 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.079e-05/0.1551, allocations: 77.11 kB / 486.4 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.012e-05/0.1551, allocations: 7.953 kB / 486.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.122e-05/0.1552, allocations: 4.031 kB / 486.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.504e-05/0.1552, allocations: 11.92 kB / 486.5 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.1552, allocations: 0 / 486.5 MB, free: 15.97 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.579e-05/0.1552, allocations: 75.28 kB / 486.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1552, allocations: 0 / 486.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006358/0.1559, allocations: 203.9 kB / 486.7 MB, free: 15.7 MB / 366.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 (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.001385/0.1573, allocations: 0.6303 MB / 487.4 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001046/0.1574, allocations: 55.41 kB / 487.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1574, allocations: 0 / 487.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.632e-05/0.1575, allocations: 59.41 kB / 487.5 MB, free: 14.99 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.189e-05/0.1576, allocations: 4.062 kB / 487.5 MB, free: 14.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000229/0.1578, allocations: 82.69 kB / 487.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005222/0.1583, allocations: 0.6731 MB / 488.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.574e-06/0.1583, allocations: 0 / 488.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.036e-05/0.1584, allocations: 11.44 kB / 488.2 MB, free: 14.16 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1584, allocations: 0 / 488.2 MB, free: 14.16 MB / 366.1 MB Notification: Performance of Templates: time 0.00818/0.1666, allocations: 4.134 MB / 492.4 MB, free: 10.02 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches