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.001731/0.001731, allocations: 113 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002142/0.002142, allocations: 212.9 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2396/0.2396, allocations: 46.1 MB / 345 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00224/0.00224, allocations: 71.88 kB / 482 MB, free: 4.117 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3617/0.3639, allocations: 62.44 MB / 0.5316 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001507/0.3655, allocations: 482.2 kB / 0.5321 GB, free: 13.26 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002421/0.3679, allocations: 1.296 MB / 0.5334 GB, free: 12.27 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.484e-05/0.368, allocations: 0 / 0.5334 GB, free: 12.27 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.38e-05/0.368, allocations: 0 / 0.5334 GB, free: 12.27 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.989e-06/0.368, allocations: 0 / 0.5334 GB, free: 12.27 MB / 398.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.001444/0.3694, allocations: 0.5869 MB / 0.5339 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.38e-05/0.3695, allocations: 1.688 kB / 0.5339 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.512e-05/0.3696, allocations: 11.98 kB / 0.5339 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.869e-05/0.3696, allocations: 5.797 kB / 0.534 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.978e-05/0.3696, allocations: 0 / 0.534 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.55e-06/0.3696, allocations: 0 / 0.534 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01254/0.3822, allocations: 2.514 MB / 0.5364 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.405e-05/0.3823, allocations: 3.984 kB / 0.5364 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.051e-05/0.3823, allocations: 5.281 kB / 0.5364 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000401/0.3827, allocations: 163 kB / 0.5366 GB, free: 10.85 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.3827, allocations: 0 / 0.5366 GB, free: 10.85 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3827, allocations: 0 / 0.5366 GB, free: 10.85 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.141e-06/0.3827, allocations: 0 / 0.5366 GB, free: 10.85 MB / 398.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.000385/0.3831, allocations: 375.4 kB / 0.5369 GB, free: 10.45 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.3832, allocations: 13.41 kB / 0.5369 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.667e-05/0.3832, allocations: 2.188 kB / 0.5369 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001092/0.3833, allocations: 160.4 kB / 0.5371 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.113e-05/0.3834, allocations: 384 / 0.5371 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.618e-06/0.3834, allocations: 5.469 kB / 0.5371 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.543e-05/0.3835, allocations: 36.12 kB / 0.5371 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.273e-06/0.3835, allocations: 3.938 kB / 0.5371 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.235e-06/0.3835, allocations: 1.219 kB / 0.5371 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.3835, allocations: 0 / 0.5371 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.019e-05/0.3835, allocations: 1.5 kB / 0.5371 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000148/0.3837, allocations: 151.1 kB / 0.5373 GB, free: 10.01 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.235e-05/0.3837, allocations: 19.95 kB / 0.5373 GB, free: 9.98 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.712e-05/0.3838, allocations: 6.172 kB / 0.5373 GB, free: 9.973 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.632e-06/0.3838, allocations: 5.422 kB / 0.5373 GB, free: 9.969 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.962e-05/0.3838, allocations: 69.45 kB / 0.5374 GB, free: 9.887 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 2.475e-06/0.3838, allocations: 0 / 0.5374 GB, free: 9.887 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001753/0.384, allocations: 66.84 kB / 0.5374 GB, free: 9.816 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.933e-05/0.3841, allocations: 78.23 kB / 0.5375 GB, free: 9.723 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.965e-05/0.3841, allocations: 89.98 kB / 0.5376 GB, free: 9.625 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.481e-05/0.3842, allocations: 33.69 kB / 0.5376 GB, free: 9.586 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.637e-05/0.3842, allocations: 81.2 kB / 0.5377 GB, free: 9.504 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.07e-05/0.3842, allocations: 3.938 kB / 0.5377 GB, free: 9.5 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.728e-05/0.3842, allocations: 11.91 kB / 0.5377 GB, free: 9.484 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.3844, allocations: 316 kB / 0.538 GB, free: 9.168 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.839e-06/0.3844, allocations: 1.156 kB / 0.538 GB, free: 9.168 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.602e-06/0.3844, allocations: 1.031 kB / 0.538 GB, free: 9.168 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.298e-05/0.3844, allocations: 67.36 kB / 0.5381 GB, free: 9.09 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3845, allocations: 0 / 0.5381 GB, free: 9.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.773e-05/0.3845, allocations: 62.98 kB / 0.5382 GB, free: 9.023 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.274e-05/0.3846, allocations: 35.11 kB / 0.5382 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.3846, allocations: 0 / 0.5382 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.3846, allocations: 0 / 0.5382 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-07/0.3846, allocations: 0.9062 kB / 0.5382 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.388e-06/0.3846, allocations: 0 / 0.5382 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.402e-05/0.3846, allocations: 0.9062 kB / 0.5382 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.043e-06/0.3846, allocations: 0.75 kB / 0.5382 GB, free: 8.988 MB / 398.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 8.43e-05/0.3847, allocations: 149.6 kB / 0.5383 GB, free: 8.828 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.247e-06/0.3848, allocations: 5 kB / 0.5383 GB, free: 8.824 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.057e-06/0.3848, allocations: 4.25 kB / 0.5383 GB, free: 8.824 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.3848, allocations: 0 / 0.5383 GB, free: 8.824 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.3848, allocations: 0 / 0.5383 GB, free: 8.824 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.3848, allocations: 1.125 kB / 0.5383 GB, free: 8.824 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.302e-05/0.3849, allocations: 146.8 kB / 0.5385 GB, free: 8.633 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.3849, allocations: 0 / 0.5385 GB, free: 8.633 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.256e-06/0.3849, allocations: 9.094 kB / 0.5385 GB, free: 8.625 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.3849, allocations: 7.938 kB / 0.5385 GB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.637e-06/0.3849, allocations: 5.031 kB / 0.5385 GB, free: 8.613 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.3849, allocations: 0 / 0.5385 GB, free: 8.613 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.3849, allocations: 1.094 kB / 0.5385 GB, free: 8.613 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.612e-05/0.385, allocations: 89.11 kB / 0.5386 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.022e-05/0.3851, allocations: 86.11 kB / 0.5387 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.221e-05/0.3851, allocations: 0.8438 kB / 0.5387 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.017e-06/0.3851, allocations: 1.094 kB / 0.5387 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.007e-05/0.3851, allocations: 5.188 kB / 0.5387 GB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-06/0.3851, allocations: 0 / 0.5387 GB, free: 8.406 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.568e-05/0.3852, allocations: 76.16 kB / 0.5388 GB, free: 8.332 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3852, allocations: 0 / 0.5388 GB, free: 8.332 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002996/0.3855, allocations: 69.45 kB / 0.5388 GB, free: 8.316 MB / 398.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.0007451/0.3862, allocations: 395.5 kB / 0.5392 GB, free: 8.105 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.899e-05/0.3863, allocations: 68.62 kB / 0.5393 GB, free: 8.031 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3863, allocations: 0 / 0.5393 GB, free: 8.031 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.281e-05/0.3864, allocations: 59.58 kB / 0.5393 GB, free: 7.965 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001196/0.3865, allocations: 6.094 kB / 0.5393 GB, free: 7.961 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001694/0.3867, allocations: 108.1 kB / 0.5394 GB, free: 7.828 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002163/0.3869, allocations: 0.6751 MB / 0.5401 GB, free: 7.129 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.241e-05/0.3869, allocations: 9.625 kB / 0.5401 GB, free: 7.121 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3869, allocations: 0 / 0.5401 GB, free: 7.121 MB / 398.1 MB Notification: Performance of Templates: time 0.004138/0.3911, allocations: 2.01 MB / 0.5421 GB, free: 6.109 MB / 398.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStrings/TestStrings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches