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.00189/0.00189, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.002445/0.002445, allocations: 209.9 kB / 24.49 MB, free: 4.148 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.396/1.396, allocations: 230.6 MB / 258.3 MB, free: 7.973 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.2213/0.2213, allocations: 46.93 MB / 361.6 MB, free: 4.234 MB / 286.1 MB " [Timeout remaining time 180] 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.002078/0.002078, allocations: 67.91 kB / 0.4974 GB, free: 7.387 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2933/0.2954, allocations: 66.03 MB / 0.5618 GB, free: 4.398 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001625/0.297, allocations: 499.7 kB / 0.5623 GB, free: 3.91 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005484/0.2976, allocations: 217.7 kB / 0.5625 GB, free: 3.699 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.233e-05/0.2976, allocations: 4 kB / 0.5625 GB, free: 3.695 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.603e-05/0.2976, allocations: 0 / 0.5625 GB, free: 3.695 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.42e-06/0.2976, allocations: 0 / 0.5625 GB, free: 3.695 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.0002934/0.2979, allocations: 47.81 kB / 0.5626 GB, free: 3.648 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.656e-05/0.2979, allocations: 12 kB / 0.5626 GB, free: 3.637 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.115e-05/0.298, allocations: 0 / 0.5626 GB, free: 3.637 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.534e-05/0.298, allocations: 0 / 0.5626 GB, free: 3.637 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.02e-05/0.298, allocations: 0 / 0.5626 GB, free: 3.637 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.101e-06/0.298, allocations: 0 / 0.5626 GB, free: 3.637 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001309/0.2982, allocations: 55.89 kB / 0.5626 GB, free: 3.582 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.883e-06/0.2982, allocations: 0 / 0.5626 GB, free: 3.582 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.822e-05/0.2982, allocations: 0 / 0.5626 GB, free: 3.582 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001133/0.2983, allocations: 51.67 kB / 0.5627 GB, free: 3.535 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.2983, allocations: 0 / 0.5627 GB, free: 3.535 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.2983, allocations: 0 / 0.5627 GB, free: 3.535 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.2983, allocations: 4 kB / 0.5627 GB, free: 3.531 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.0003321/0.2986, allocations: 274.6 kB / 0.563 GB, free: 3.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.2987, allocations: 8.031 kB / 0.563 GB, free: 3.223 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.004e-05/0.2987, allocations: 4.938 kB / 0.563 GB, free: 3.219 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.124e-05/0.2988, allocations: 106.5 kB / 0.5631 GB, free: 3.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.2988, allocations: 384 / 0.5631 GB, free: 3.09 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.164e-05/0.2988, allocations: 384 / 0.5631 GB, free: 3.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.073e-05/0.2989, allocations: 34.27 kB / 0.5631 GB, free: 3.051 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.896e-06/0.2989, allocations: 4.188 kB / 0.5631 GB, free: 3.047 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-06/0.2989, allocations: 3.938 kB / 0.5631 GB, free: 3.043 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.2989, allocations: 0 / 0.5631 GB, free: 3.043 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.805e-05/0.299, allocations: 11.88 kB / 0.5631 GB, free: 3.031 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001385/0.2991, allocations: 124.7 kB / 0.5632 GB, free: 2.867 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.498e-05/0.2991, allocations: 14.58 kB / 0.5633 GB, free: 2.844 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.745e-05/0.2992, allocations: 8.953 kB / 0.5633 GB, free: 2.832 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.793e-06/0.2992, allocations: 0 / 0.5633 GB, free: 2.832 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.121e-05/0.2992, allocations: 64.27 kB / 0.5633 GB, free: 2.754 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.21e-07/0.2992, allocations: 0 / 0.5633 GB, free: 2.754 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001857/0.2994, allocations: 75.25 kB / 0.5634 GB, free: 2.668 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.167e-05/0.2995, allocations: 77.11 kB / 0.5635 GB, free: 2.574 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.671e-05/0.2995, allocations: 93.81 kB / 0.5636 GB, free: 2.473 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.657e-05/0.2995, allocations: 25.7 kB / 0.5636 GB, free: 2.441 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.537e-05/0.2996, allocations: 84.14 kB / 0.5637 GB, free: 2.355 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.422e-05/0.2996, allocations: 128 / 0.5637 GB, free: 2.355 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.69e-05/0.2996, allocations: 21.66 kB / 0.5637 GB, free: 2.328 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.2997, allocations: 310.8 kB / 0.564 GB, free: 2.016 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.209e-05/0.2998, allocations: 4 kB / 0.564 GB, free: 2.012 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.03e-06/0.2998, allocations: 0 / 0.564 GB, free: 2.012 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.465e-05/0.2998, allocations: 64.25 kB / 0.5641 GB, free: 1.934 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.2998, allocations: 3.938 kB / 0.5641 GB, free: 1.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.235e-05/0.2999, allocations: 63.41 kB / 0.5641 GB, free: 1.855 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.398e-05/0.2999, allocations: 33.8 kB / 0.5641 GB, free: 1.816 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.958e-06/0.3, allocations: 0 / 0.5641 GB, free: 1.816 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.3, allocations: 3.938 kB / 0.5642 GB, free: 1.812 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.81e-07/0.3, allocations: 0 / 0.5642 GB, free: 1.812 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.3, allocations: 0 / 0.5642 GB, free: 1.812 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.67e-05/0.3, allocations: 4 kB / 0.5642 GB, free: 1.809 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.275e-06/0.3, allocations: 3.984 kB / 0.5642 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 9.769e-05/0.3001, allocations: 135.5 kB / 0.5643 GB, free: 1.656 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.638e-06/0.3001, allocations: 4 kB / 0.5643 GB, free: 1.652 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.204e-05/0.3001, allocations: 10.94 kB / 0.5643 GB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.3001, allocations: 0 / 0.5643 GB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.3001, allocations: 0 / 0.5643 GB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.973e-06/0.3001, allocations: 0 / 0.5643 GB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001002/0.3002, allocations: 116.8 kB / 0.5644 GB, free: 1.484 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.41e-07/0.3002, allocations: 4 kB / 0.5644 GB, free: 1.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.71e-07/0.3002, allocations: 0 / 0.5644 GB, free: 1.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.72e-07/0.3002, allocations: 0 / 0.5644 GB, free: 1.48 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.3002, allocations: 3.938 kB / 0.5644 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.82e-07/0.3002, allocations: 0 / 0.5644 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.3002, allocations: 3.938 kB / 0.5644 GB, free: 1.473 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001048/0.3003, allocations: 98.83 kB / 0.5645 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.426e-06/0.3003, allocations: 0 / 0.5645 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.398e-05/0.3004, allocations: 11.88 kB / 0.5645 GB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.052e-05/0.3004, allocations: 4 kB / 0.5645 GB, free: 1.336 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.506e-05/0.3004, allocations: 0 / 0.5645 GB, free: 1.336 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-06/0.3004, allocations: 0 / 0.5645 GB, free: 1.336 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.247e-05/0.3004, allocations: 75.28 kB / 0.5646 GB, free: 1.262 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3004, allocations: 4.031 kB / 0.5646 GB, free: 1.258 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002169/0.3006, allocations: 19.92 kB / 0.5646 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.0004112/0.3011, allocations: 185.8 kB / 0.5648 GB, free: 1.074 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001091/0.3012, allocations: 67.33 kB / 0.5649 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.3012, allocations: 0 / 0.5649 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.801e-05/0.3012, allocations: 55.41 kB / 0.5649 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.000122/0.3013, allocations: 0 / 0.5649 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002013/0.3015, allocations: 114.8 kB / 0.565 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003049/0.3018, allocations: 0.6729 MB / 0.5657 GB, free: 88 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.314e-05/0.3018, allocations: 11.44 kB / 0.5657 GB, free: 76 kB / 398.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3018, allocations: 0 / 0.5657 GB, free: 76 kB / 398.1 MB Notification: Performance of Templates: time 0.002418/0.3043, allocations: 0.7502 MB / 0.5664 GB, free: 15.32 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/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: 7.052673259982839]