Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.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.001968/0.001968, allocations: 91.61 kB / 20.96 MB, free: 3.457 MB / 18.57 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.002082/0.002082, allocations: 161.3 kB / 24.27 MB, free: 148 kB / 18.57 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.58/1.58, allocations: 177.1 MB / 204.6 MB, free: 5.574 MB / 186.7 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.3576/0.3576, allocations: 34.26 MB / 295.3 MB, free: 0.6797 MB / 266.7 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.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.844e-06/1.844e-06, allocations: 0 / 377.3 MB, free: 2.984 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.858e-05/3.043e-05, allocations: 2.312 kB / 377.3 MB, free: 2.98 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001584/0.001614, allocations: 0.4923 MB / 377.8 MB, free: 2.488 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002426/0.004041, allocations: 1.372 MB / 379.1 MB, free: 1.109 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.439e-05/0.004065, allocations: 4 kB / 379.1 MB, free: 1.105 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.223e-05/0.004077, allocations: 0 / 379.1 MB, free: 1.105 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002271/0.004304, allocations: 11.88 kB / 379.1 MB, free: 1.094 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:455:3-487:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001287/0.005592, allocations: 258 kB / 379.4 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.871e-05/0.00565, allocations: 11.94 kB / 379.4 MB, free: 0.832 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.629e-05/0.005677, allocations: 3.938 kB / 379.4 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.498e-05/0.005712, allocations: 4 kB / 379.4 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.191e-05/0.005783, allocations: 3.984 kB / 379.4 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.687e-06/0.005792, allocations: 0 / 379.4 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006197/0.01199, allocations: 1.011 MB / 380.4 MB, free: 64 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.42e-05/0.012, allocations: 0 / 380.4 MB, free: 64 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.34e-05/0.01205, allocations: 3.938 kB / 380.4 MB, free: 60 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005159/0.01256, allocations: 211.5 kB / 380.6 MB, free: 15.85 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.01257, allocations: 4 kB / 380.6 MB, free: 15.85 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.01257, allocations: 0 / 380.6 MB, free: 15.85 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.01258, allocations: 0 / 380.6 MB, free: 15.85 MB / 362.7 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.0005764/0.01315, allocations: 417.6 kB / 381 MB, free: 15.4 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.0132, allocations: 8.031 kB / 381.1 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.893e-05/0.01325, allocations: 0.9375 kB / 381.1 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001403/0.01339, allocations: 112.6 kB / 381.2 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.41e-05/0.01341, allocations: 4.312 kB / 381.2 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.416e-06/0.01342, allocations: 384 / 381.2 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001344/0.01355, allocations: 59.95 kB / 381.2 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.096e-06/0.01356, allocations: 4.188 kB / 381.2 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.809e-06/0.01357, allocations: 4.125 kB / 381.2 MB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.878e-06/0.01357, allocations: 0 / 381.2 MB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.836e-05/0.01361, allocations: 29.7 kB / 381.3 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001485/0.01376, allocations: 108.6 kB / 381.4 MB, free: 15 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.775e-05/0.01385, allocations: 56.73 kB / 381.4 MB, free: 14.92 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.95e-05/0.01389, allocations: 37.38 kB / 381.5 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.123e-05/0.0139, allocations: 4.062 kB / 381.5 MB, free: 14.87 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.196e-05/0.01396, allocations: 59.09 kB / 381.5 MB, free: 14.8 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 4.829e-06/0.01396, allocations: 3.984 kB / 381.5 MB, free: 14.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.000233/0.0142, allocations: 122.8 kB / 381.7 MB, free: 14.65 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.177e-05/0.01427, allocations: 85.03 kB / 381.7 MB, free: 14.55 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000129/0.0144, allocations: 157.9 kB / 381.9 MB, free: 14.38 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.789e-05/0.01442, allocations: 25.7 kB / 381.9 MB, free: 14.34 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.895e-05/0.0145, allocations: 126.9 kB / 382 MB, free: 14.21 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.604e-05/0.01452, allocations: 3.938 kB / 382 MB, free: 14.21 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.878e-05/0.01456, allocations: 19.38 kB / 382.1 MB, free: 14.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002741/0.01483, allocations: 492.1 kB / 382.5 MB, free: 13.69 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.253e-05/0.01487, allocations: 37.62 kB / 382.6 MB, free: 13.65 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.203e-05/0.0149, allocations: 33.95 kB / 382.6 MB, free: 13.61 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.638e-05/0.01496, allocations: 63.09 kB / 382.7 MB, free: 13.53 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.01497, allocations: 0 / 382.7 MB, free: 13.53 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001046/0.01507, allocations: 89.09 kB / 382.8 MB, free: 13.43 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.593e-05/0.01513, allocations: 37.7 kB / 382.8 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.01513, allocations: 4 kB / 382.8 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.01515, allocations: 0 / 382.8 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.156e-06/0.01515, allocations: 3.938 kB / 382.8 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.01516, allocations: 3.938 kB / 382.8 MB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.414e-05/0.01517, allocations: 96 / 382.8 MB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-06/0.01518, allocations: 8 kB / 382.8 MB, free: 13.36 MB / 362.7 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.0001399/0.01532, allocations: 178.3 kB / 383 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.34e-05/0.01533, allocations: 4 kB / 383 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.358e-05/0.01535, allocations: 7.141 kB / 383 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.01536, allocations: 0 / 383 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.01536, allocations: 3.938 kB / 383 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.01536, allocations: 0 / 383 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001142/0.01548, allocations: 108.6 kB / 383.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.01548, allocations: 0 / 383.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.01548, allocations: 0 / 383.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.01548, allocations: 4 kB / 383.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-06/0.01549, allocations: 0 / 383.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.01549, allocations: 4 kB / 383.1 MB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.01549, allocations: 0 / 383.1 MB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001896/0.01568, allocations: 139.7 kB / 383.3 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.689e-06/0.01568, allocations: 4 kB / 383.3 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.564e-05/0.0157, allocations: 3.984 kB / 383.3 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.145e-05/0.01571, allocations: 4 kB / 383.3 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.775e-05/0.01573, allocations: 3.938 kB / 383.3 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-06/0.01573, allocations: 4 kB / 383.3 MB, free: 12.82 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.192e-05/0.0158, allocations: 123.2 kB / 383.4 MB, free: 12.7 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0158, allocations: 0 / 383.4 MB, free: 12.7 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003263/0.01613, allocations: 63.8 kB / 383.5 MB, free: 12.64 MB / 362.7 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.001444/0.01757, allocations: 359.6 kB / 383.8 MB, free: 12.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001785/0.01775, allocations: 122.5 kB / 383.9 MB, free: 12.21 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.01775, allocations: 0 / 383.9 MB, free: 12.21 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001097/0.01786, allocations: 88.8 kB / 384 MB, free: 12.1 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001421/0.01801, allocations: 4 kB / 384 MB, free: 12.1 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002765/0.01828, allocations: 140.1 kB / 384.2 MB, free: 11.93 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.844e-05/0.01834, allocations: 55.36 kB / 384.2 MB, free: 11.85 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.08e-06/0.01835, allocations: 0 / 384.2 MB, free: 11.85 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.619e-05/0.01836, allocations: 12.5 kB / 384.2 MB, free: 11.84 MB / 362.7 MB Notification: Performance of SimCode: time 4.41e-07/0.01836, allocations: 0 / 384.2 MB, free: 11.84 MB / 362.7 MB Notification: Performance of Templates: time 0.005602/0.02397, allocations: 1.646 MB / 385.9 MB, free: 10.2 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.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.006571647012606]