Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001367/0.001367, allocations: 103.6 kB / 21.19 MB, free: 0.5156 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.001506/0.001506, allocations: 209.2 kB / 24.48 MB, free: 3.836 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.464/1.464, allocations: 230.6 MB / 258.2 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2225/0.2225, allocations: 44.93 MB / 359.6 MB, free: 6.148 MB / 286.1 MB " [Timeout remaining time 180] 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.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.0.0_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002378/0.002378, allocations: 71.89 kB / 0.4942 GB, free: 10.08 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.3264, allocations: 65.47 MB / 0.5582 GB, free: 7.363 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001744/0.3281, allocations: 480.3 kB / 0.5586 GB, free: 6.902 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000615/0.3287, allocations: 229.6 kB / 0.5588 GB, free: 6.68 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.731e-05/0.3288, allocations: 0 / 0.5588 GB, free: 6.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.274e-05/0.3288, allocations: 3.938 kB / 0.5588 GB, free: 6.676 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.451e-06/0.3288, allocations: 0 / 0.5588 GB, free: 6.676 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:290:3-321: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.0003077/0.3291, allocations: 43.83 kB / 0.5589 GB, free: 6.633 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.053e-05/0.3292, allocations: 7.984 kB / 0.5589 GB, free: 6.625 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.594e-05/0.3292, allocations: 0 / 0.5589 GB, free: 6.625 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.571e-05/0.3292, allocations: 0 / 0.5589 GB, free: 6.625 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.336e-05/0.3292, allocations: 0 / 0.5589 GB, free: 6.625 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.059e-05/0.3292, allocations: 8 kB / 0.5589 GB, free: 6.617 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001262/0.3294, allocations: 47.95 kB / 0.5589 GB, free: 6.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.704e-06/0.3294, allocations: 0 / 0.5589 GB, free: 6.57 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.083e-05/0.3294, allocations: 0 / 0.5589 GB, free: 6.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001191/0.3295, allocations: 51.72 kB / 0.559 GB, free: 6.523 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3295, allocations: 0 / 0.559 GB, free: 6.523 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3295, allocations: 3.938 kB / 0.559 GB, free: 6.52 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.3295, allocations: 0 / 0.559 GB, free: 6.52 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.0003513/0.3299, allocations: 277.2 kB / 0.5593 GB, free: 6.219 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.3299, allocations: 12.03 kB / 0.5593 GB, free: 6.207 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.407e-05/0.3299, allocations: 8.938 kB / 0.5593 GB, free: 6.199 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.167e-05/0.33, allocations: 102.5 kB / 0.5594 GB, free: 6.074 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.33, allocations: 384 / 0.5594 GB, free: 6.074 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.714e-06/0.3301, allocations: 384 / 0.5594 GB, free: 6.074 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001032/0.3302, allocations: 59.91 kB / 0.5594 GB, free: 6.004 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.3302, allocations: 192 / 0.5594 GB, free: 6.004 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.878e-06/0.3302, allocations: 3.938 kB / 0.5594 GB, free: 6 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-06/0.3302, allocations: 0 / 0.5594 GB, free: 6 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.614e-05/0.3302, allocations: 37.67 kB / 0.5595 GB, free: 5.957 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001145/0.3303, allocations: 101.3 kB / 0.5596 GB, free: 5.828 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.427e-05/0.3304, allocations: 48.25 kB / 0.5596 GB, free: 5.766 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.922e-05/0.3304, allocations: 34.56 kB / 0.5597 GB, free: 5.723 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.017e-06/0.3304, allocations: 64 / 0.5597 GB, free: 5.723 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.04e-05/0.3305, allocations: 60.27 kB / 0.5597 GB, free: 5.648 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.3305, allocations: 3.938 kB / 0.5597 GB, free: 5.645 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000213/0.3307, allocations: 122.7 kB / 0.5598 GB, free: 5.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.462e-05/0.3308, allocations: 77.11 kB / 0.5599 GB, free: 5.406 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.999e-05/0.3308, allocations: 93.81 kB / 0.56 GB, free: 5.305 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/0.3308, allocations: 29.7 kB / 0.56 GB, free: 5.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.295e-05/0.3309, allocations: 80.14 kB / 0.5601 GB, free: 5.188 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.905e-05/0.3309, allocations: 128 / 0.5601 GB, free: 5.188 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.929e-05/0.3309, allocations: 17.7 kB / 0.5601 GB, free: 5.164 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.331, allocations: 318.8 kB / 0.5604 GB, free: 4.844 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.924e-05/0.3311, allocations: 25.7 kB / 0.5604 GB, free: 4.812 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.813e-05/0.3311, allocations: 25.7 kB / 0.5605 GB, free: 4.781 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.815e-05/0.3311, allocations: 68.14 kB / 0.5605 GB, free: 4.699 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3311, allocations: 0 / 0.5605 GB, free: 4.699 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.943e-05/0.3312, allocations: 93.09 kB / 0.5606 GB, free: 4.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.927e-05/0.3313, allocations: 33.7 kB / 0.5607 GB, free: 4.551 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.3313, allocations: 0 / 0.5607 GB, free: 4.551 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.3313, allocations: 4.094 kB / 0.5607 GB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.717e-06/0.3313, allocations: 3.938 kB / 0.5607 GB, free: 4.543 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.3313, allocations: 0 / 0.5607 GB, free: 4.543 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.551e-05/0.3313, allocations: 0 / 0.5607 GB, free: 4.543 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-06/0.3313, allocations: 0 / 0.5607 GB, free: 4.543 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 9.444e-05/0.3314, allocations: 139.5 kB / 0.5608 GB, free: 4.391 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.514e-06/0.3314, allocations: 0 / 0.5608 GB, free: 4.391 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.181e-05/0.3314, allocations: 3 kB / 0.5608 GB, free: 4.387 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.3314, allocations: 7.938 kB / 0.5608 GB, free: 4.379 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.3315, allocations: 0 / 0.5608 GB, free: 4.379 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.3315, allocations: 4 kB / 0.5608 GB, free: 4.375 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.442e-05/0.3315, allocations: 93.33 kB / 0.5609 GB, free: 4.254 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.3315, allocations: 0 / 0.5609 GB, free: 4.254 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.3315, allocations: 0 / 0.5609 GB, free: 4.254 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.3316, allocations: 7.922 kB / 0.5609 GB, free: 4.246 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.3316, allocations: 8 kB / 0.5609 GB, free: 4.238 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.3316, allocations: 0 / 0.5609 GB, free: 4.238 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.3316, allocations: 7.938 kB / 0.5609 GB, free: 4.23 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001218/0.3317, allocations: 116.5 kB / 0.561 GB, free: 4.086 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.268e-06/0.3317, allocations: 0 / 0.561 GB, free: 4.086 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.181e-05/0.3317, allocations: 0 / 0.561 GB, free: 4.086 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.826e-06/0.3317, allocations: 8.031 kB / 0.561 GB, free: 4.078 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.316e-05/0.3317, allocations: 7.875 kB / 0.5611 GB, free: 4.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.334e-06/0.3317, allocations: 0 / 0.5611 GB, free: 4.07 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.495e-05/0.3318, allocations: 75.28 kB / 0.5611 GB, free: 3.996 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3318, allocations: 0 / 0.5611 GB, free: 3.996 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000223/0.332, allocations: 15.94 kB / 0.5611 GB, free: 3.98 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.0005007/0.3325, allocations: 205.2 kB / 0.5613 GB, free: 3.805 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001311/0.3326, allocations: 114.7 kB / 0.5614 GB, free: 3.668 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3326, allocations: 4 kB / 0.5614 GB, free: 3.664 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.306e-05/0.3327, allocations: 77.11 kB / 0.5615 GB, free: 3.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001286/0.3328, allocations: 8.125 kB / 0.5615 GB, free: 3.562 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002198/0.333, allocations: 140.4 kB / 0.5617 GB, free: 3.387 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.773e-05/0.3331, allocations: 55.36 kB / 0.5617 GB, free: 3.312 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.33e-05/0.3331, allocations: 7.438 kB / 0.5617 GB, free: 3.305 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3331, allocations: 0 / 0.5617 GB, free: 3.305 MB / 398.1 MB Notification: Performance of Templates: time 0.002631/0.3357, allocations: 0.7463 MB / 0.5625 GB, free: 2.559 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 7.480358883738518]