Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00134/0.00134, allocations: 115.8 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001602/0.001602, allocations: 212.7 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.706/1.706, allocations: 230.6 MB / 257.5 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2472/0.2472, allocations: 46.94 MB / 360.8 MB, free: 4.262 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002071/0.002071, allocations: 67.89 kB / 0.4966 GB, free: 7.41 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3816/0.3837, allocations: 66.03 MB / 0.5611 GB, free: 4.391 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001907/0.3856, allocations: 496.9 kB / 0.5616 GB, free: 3.902 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006674/0.3862, allocations: 221.7 kB / 0.5618 GB, free: 3.688 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.944e-05/0.3863, allocations: 0 / 0.5618 GB, free: 3.688 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.814e-05/0.3863, allocations: 0 / 0.5618 GB, free: 3.688 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.554e-06/0.3863, allocations: 0 / 0.5618 GB, free: 3.688 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:289:3-320:16:writable] Warning: Pure function 'ModelicaTest.Utilities.WriteFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003645/0.3866, allocations: 47.81 kB / 0.5618 GB, free: 3.641 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.856e-05/0.3867, allocations: 8 kB / 0.5618 GB, free: 3.633 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.189e-05/0.3868, allocations: 0 / 0.5618 GB, free: 3.633 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.409e-05/0.3868, allocations: 0 / 0.5618 GB, free: 3.633 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.51e-05/0.3868, allocations: 0 / 0.5618 GB, free: 3.633 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.812e-06/0.3868, allocations: 7.938 kB / 0.5618 GB, free: 3.625 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001593/0.387, allocations: 51.95 kB / 0.5619 GB, free: 3.574 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.155e-06/0.387, allocations: 0 / 0.5619 GB, free: 3.574 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.716e-05/0.387, allocations: 4 kB / 0.5619 GB, free: 3.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001567/0.3872, allocations: 51.66 kB / 0.562 GB, free: 3.523 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3872, allocations: 0 / 0.562 GB, free: 3.523 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3872, allocations: 0 / 0.562 GB, free: 3.523 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.102e-06/0.3872, allocations: 0 / 0.562 GB, free: 3.523 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.0003978/0.3876, allocations: 278.6 kB / 0.5622 GB, free: 3.219 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/0.3876, allocations: 12.03 kB / 0.5622 GB, free: 3.207 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.084e-05/0.3877, allocations: 0.9375 kB / 0.5622 GB, free: 3.207 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001021/0.3878, allocations: 106.5 kB / 0.5623 GB, free: 3.078 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.3878, allocations: 384 / 0.5623 GB, free: 3.078 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.055e-06/0.3878, allocations: 384 / 0.5623 GB, free: 3.078 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001083/0.3879, allocations: 30.27 kB / 0.5624 GB, free: 3.043 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.3879, allocations: 192 / 0.5624 GB, free: 3.043 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.337e-05/0.3879, allocations: 3.938 kB / 0.5624 GB, free: 3.039 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.3879, allocations: 3.938 kB / 0.5624 GB, free: 3.035 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.558e-05/0.388, allocations: 11.98 kB / 0.5624 GB, free: 3.023 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001575/0.3881, allocations: 116.7 kB / 0.5625 GB, free: 2.867 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.641e-05/0.3882, allocations: 18.58 kB / 0.5625 GB, free: 2.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.787e-05/0.3882, allocations: 8.953 kB / 0.5625 GB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.265e-06/0.3882, allocations: 0 / 0.5625 GB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.836e-05/0.3883, allocations: 60.27 kB / 0.5626 GB, free: 2.754 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.3883, allocations: 0 / 0.5626 GB, free: 2.754 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002031/0.3885, allocations: 71.27 kB / 0.5626 GB, free: 2.672 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.44e-05/0.3886, allocations: 81.23 kB / 0.5627 GB, free: 2.574 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.122e-05/0.3886, allocations: 93.81 kB / 0.5628 GB, free: 2.473 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.125e-05/0.3886, allocations: 29.7 kB / 0.5628 GB, free: 2.438 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.584e-05/0.3887, allocations: 84.08 kB / 0.5629 GB, free: 2.352 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.51e-05/0.3887, allocations: 0 / 0.5629 GB, free: 2.352 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.071e-05/0.3888, allocations: 13.72 kB / 0.5629 GB, free: 2.332 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.3889, allocations: 318.8 kB / 0.5632 GB, free: 2.012 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.078e-05/0.3889, allocations: 0 / 0.5632 GB, free: 2.012 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.276e-06/0.3889, allocations: 4 kB / 0.5632 GB, free: 2.008 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.002e-05/0.389, allocations: 64.2 kB / 0.5633 GB, free: 1.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.389, allocations: 0 / 0.5633 GB, free: 1.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.784e-05/0.3891, allocations: 63.41 kB / 0.5634 GB, free: 1.855 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.874e-05/0.3891, allocations: 33.69 kB / 0.5634 GB, free: 1.816 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.3891, allocations: 0 / 0.5634 GB, free: 1.816 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/0.3892, allocations: 3.938 kB / 0.5634 GB, free: 1.812 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.182e-06/0.3892, allocations: 0 / 0.5634 GB, free: 1.812 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.3892, allocations: 0 / 0.5634 GB, free: 1.812 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.989e-05/0.3892, allocations: 8.094 kB / 0.5634 GB, free: 1.805 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-06/0.3892, allocations: 0 / 0.5634 GB, free: 1.805 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 0.0001043/0.3893, allocations: 131.5 kB / 0.5635 GB, free: 1.66 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.008e-05/0.3893, allocations: 4 kB / 0.5635 GB, free: 1.656 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.546e-05/0.3893, allocations: 6.938 kB / 0.5635 GB, free: 1.648 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.3893, allocations: 3.984 kB / 0.5635 GB, free: 1.645 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.3893, allocations: 0 / 0.5635 GB, free: 1.645 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.3893, allocations: 7.922 kB / 0.5636 GB, free: 1.637 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001161/0.3895, allocations: 116.8 kB / 0.5637 GB, free: 1.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.51e-07/0.3895, allocations: 4 kB / 0.5637 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.61e-07/0.3895, allocations: 0 / 0.5637 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.217e-06/0.3895, allocations: 4 kB / 0.5637 GB, free: 1.473 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/0.3895, allocations: 3.938 kB / 0.5637 GB, free: 1.469 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-07/0.3895, allocations: 0 / 0.5637 GB, free: 1.469 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.3895, allocations: 3.938 kB / 0.5637 GB, free: 1.465 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001222/0.3896, allocations: 94.83 kB / 0.5638 GB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.807e-06/0.3896, allocations: 0 / 0.5638 GB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.778e-05/0.3896, allocations: 11.97 kB / 0.5638 GB, free: 1.336 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.066e-06/0.3896, allocations: 0 / 0.5638 GB, free: 1.336 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.056e-05/0.3896, allocations: 0 / 0.5638 GB, free: 1.336 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.999e-06/0.3896, allocations: 3.984 kB / 0.5638 GB, free: 1.332 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.681e-05/0.3897, allocations: 75.28 kB / 0.5639 GB, free: 1.258 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3897, allocations: 3.938 kB / 0.5639 GB, free: 1.254 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002325/0.3899, allocations: 15.94 kB / 0.5639 GB, free: 1.238 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.0004684/0.3904, allocations: 189.3 kB / 0.5641 GB, free: 1.074 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000112/0.3905, allocations: 63.34 kB / 0.5641 GB, free: 1 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3905, allocations: 4.062 kB / 0.5641 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.012e-05/0.3905, allocations: 55.41 kB / 0.5642 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000127/0.3907, allocations: 2.344 kB / 0.5642 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002147/0.3909, allocations: 92.92 kB / 0.5643 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003296/0.3912, allocations: 0.669 MB / 0.5649 GB, free: 120 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.906e-06/0.3912, allocations: 4 kB / 0.5649 GB, free: 116 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.242e-05/0.3912, allocations: 7.438 kB / 0.5649 GB, free: 108 kB / 398.1 MB Notification: Performance of SimCode: time 3e-07/0.3912, allocations: 0 / 0.5649 GB, free: 108 kB / 398.1 MB Notification: Performance of Templates: time 0.003515/0.3947, allocations: 0.5876 MB / 0.5655 GB, free: 15.52 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.50881146104075]