Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.002591/0.002591, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.003003/0.003003, allocations: 165.3 kB / 24.27 MB, free: 156 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.547/1.547, 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.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.3249/0.3249, allocations: 32.8 MB / 293.9 MB, free: 1.207 MB / 266.7 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.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 375.2 MB, free: 5.027 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.748e-05/2.917e-05, allocations: 2.312 kB / 375.2 MB, free: 5.023 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001579/0.001608, allocations: 0.5042 MB / 375.7 MB, free: 4.52 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002307/0.003915, allocations: 1.364 MB / 377.1 MB, free: 3.148 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.482e-05/0.00394, allocations: 0 / 377.1 MB, free: 3.148 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.694e-05/0.003957, allocations: 3.938 kB / 377.1 MB, free: 3.145 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002163/0.004173, allocations: 7.984 kB / 377.1 MB, free: 3.137 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:456:3-488: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.001315/0.005488, allocations: 276.4 kB / 377.4 MB, free: 2.871 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.364e-05/0.005542, allocations: 3.984 kB / 377.4 MB, free: 2.867 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.056e-05/0.005582, allocations: 8 kB / 377.4 MB, free: 2.859 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.942e-05/0.005622, allocations: 3.984 kB / 377.4 MB, free: 2.855 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.237e-05/0.005694, allocations: 0 / 377.4 MB, free: 2.855 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.357e-06/0.005704, allocations: 4 kB / 377.4 MB, free: 2.852 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006451/0.01215, allocations: 1 MB / 378.4 MB, free: 2.102 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.5e-05/0.01217, allocations: 0 / 378.4 MB, free: 2.102 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.866e-05/0.0122, allocations: 0 / 378.4 MB, free: 2.102 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004548/0.01265, allocations: 215.4 kB / 378.6 MB, free: 1.891 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.01266, allocations: 0 / 378.6 MB, free: 1.891 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.01266, allocations: 0 / 378.6 MB, free: 1.891 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.01267, allocations: 0 / 378.6 MB, free: 1.891 MB / 346.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.0005714/0.01324, allocations: 413.7 kB / 379 MB, free: 1.445 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.01329, allocations: 8.031 kB / 379 MB, free: 1.438 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.062e-05/0.01334, allocations: 4.875 kB / 379 MB, free: 1.434 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001464/0.01348, allocations: 116.6 kB / 379.1 MB, free: 1.293 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.346e-05/0.0135, allocations: 384 / 379.1 MB, free: 1.293 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.778e-06/0.01351, allocations: 384 / 379.1 MB, free: 1.293 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001275/0.01363, allocations: 63.95 kB / 379.2 MB, free: 1.219 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/0.01364, allocations: 192 / 379.2 MB, free: 1.219 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.15e-05/0.01365, allocations: 8.062 kB / 379.2 MB, free: 1.211 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.01366, allocations: 0 / 379.2 MB, free: 1.211 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.972e-05/0.0137, allocations: 29.7 kB / 379.2 MB, free: 1.176 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001514/0.01385, allocations: 104.6 kB / 379.3 MB, free: 1.039 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.414e-05/0.01394, allocations: 60.72 kB / 379.4 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.461e-05/0.01399, allocations: 45.45 kB / 379.4 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.007e-05/0.014, allocations: 0 / 379.4 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.888e-05/0.01406, allocations: 59.09 kB / 379.5 MB, free: 0.832 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.01406, allocations: 0 / 379.5 MB, free: 0.832 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002545/0.01431, allocations: 118.8 kB / 379.6 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.799e-05/0.01439, allocations: 88.98 kB / 379.7 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.01452, allocations: 153.9 kB / 379.9 MB, free: 428 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.01454, allocations: 25.7 kB / 379.9 MB, free: 396 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.066e-05/0.01461, allocations: 126.9 kB / 380 MB, free: 264 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.311e-05/0.01462, allocations: 256 / 380 MB, free: 264 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.771e-05/0.01466, allocations: 27.38 kB / 380 MB, free: 228 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002737/0.01493, allocations: 496.1 kB / 380.5 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.907e-05/0.01496, allocations: 29.7 kB / 380.5 MB, free: 15.69 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.484e-05/0.01498, allocations: 25.7 kB / 380.6 MB, free: 15.66 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.223e-05/0.01505, allocations: 63.09 kB / 380.6 MB, free: 15.58 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.01505, allocations: 0 / 380.6 MB, free: 15.58 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001121/0.01516, allocations: 101 kB / 380.7 MB, free: 15.46 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.786e-05/0.0152, allocations: 29.7 kB / 380.8 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.0152, allocations: 0 / 380.8 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.01522, allocations: 4.094 kB / 380.8 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.007e-06/0.01522, allocations: 3.938 kB / 380.8 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.01523, allocations: 0 / 380.8 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.642e-05/0.01524, allocations: 4 kB / 380.8 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.212e-06/0.01525, allocations: 0 / 380.8 MB, free: 15.42 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.0001386/0.01539, allocations: 186.3 kB / 381 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.047e-06/0.0154, allocations: 0 / 381 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.679e-06/0.01541, allocations: 3.156 kB / 381 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.01541, allocations: 0 / 381 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.01541, allocations: 3.938 kB / 381 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.01541, allocations: 4 kB / 381 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001024/0.01552, allocations: 112.6 kB / 381.1 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.01552, allocations: 7.938 kB / 381.1 MB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.01552, allocations: 0 / 381.1 MB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.01552, allocations: 3.984 kB / 381.1 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/0.01554, allocations: 7.984 kB / 381.1 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.01554, allocations: 0 / 381.1 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.01554, allocations: 3.984 kB / 381.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000166/0.01571, allocations: 147.7 kB / 381.2 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.589e-06/0.01571, allocations: 0 / 381.2 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.283e-05/0.01573, allocations: 0 / 381.2 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.866e-06/0.01573, allocations: 4.031 kB / 381.2 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.865e-05/0.01575, allocations: 7.938 kB / 381.3 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.865e-06/0.01576, allocations: 0 / 381.3 MB, free: 14.85 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.975e-05/0.01583, allocations: 119.2 kB / 381.4 MB, free: 14.73 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01583, allocations: 0 / 381.4 MB, free: 14.73 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003347/0.01616, allocations: 71.8 kB / 381.4 MB, free: 14.66 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.001192/0.01735, allocations: 346 kB / 381.8 MB, free: 14.4 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001675/0.01752, allocations: 122.5 kB / 381.9 MB, free: 14.25 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.01752, allocations: 64 / 381.9 MB, free: 14.25 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.682e-05/0.0176, allocations: 100.7 kB / 382 MB, free: 14.13 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001507/0.01775, allocations: 4 kB / 382 MB, free: 14.12 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002541/0.018, allocations: 128 kB / 382.1 MB, free: 13.96 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.986e-05/0.01807, allocations: 51.36 kB / 382.2 MB, free: 13.89 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.644e-06/0.01808, allocations: 4 kB / 382.2 MB, free: 13.89 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.608e-05/0.0181, allocations: 8.5 kB / 382.2 MB, free: 13.88 MB / 362.7 MB Notification: Performance of SimCode: time 4.41e-07/0.0181, allocations: 0 / 382.2 MB, free: 13.88 MB / 362.7 MB Notification: Performance of Templates: time 0.005247/0.02334, allocations: 1.645 MB / 383.8 MB, free: 12.24 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 4.976199119933881]