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.00109/0.00109, allocations: 87.58 kB / 21.19 MB, free: 3.371 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.001767/0.001767, allocations: 165 kB / 24.56 MB, free: 8 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.06/1.06, allocations: 177.1 MB / 205 MB, free: 5.234 MB / 186.7 MB " [Timeout remaining time 179] 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.2715/0.2715, allocations: 34.26 MB / 295.7 MB, free: 0.707 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.764e-06/1.764e-06, allocations: 0 / 378 MB, free: 2.676 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3e-05/3.176e-05, allocations: 2.312 kB / 378 MB, free: 2.672 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001683/0.001715, allocations: 499.9 kB / 378.5 MB, free: 2.184 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001642/0.003357, allocations: 1.399 MB / 379.9 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.761e-05/0.003385, allocations: 4 kB / 379.9 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.629e-05/0.003411, allocations: 3.938 kB / 379.9 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002482/0.003659, allocations: 3.938 kB / 379.9 MB, free: 0.7656 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.001053/0.004712, allocations: 278.2 kB / 380.2 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.726e-05/0.004769, allocations: 11.94 kB / 380.2 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.66e-05/0.004806, allocations: 0 / 380.2 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.189e-05/0.004838, allocations: 0 / 380.2 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.465e-05/0.004882, allocations: 6.953 kB / 380.2 MB, free: 500 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.054e-05/0.004893, allocations: 4 kB / 380.2 MB, free: 496 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002426/0.007318, allocations: 0.9955 MB / 381.2 MB, free: 15.73 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.804e-05/0.007336, allocations: 0 / 381.2 MB, free: 15.73 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 3.12e-05/0.007368, allocations: 0 / 381.2 MB, free: 15.73 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003151/0.007683, allocations: 211.5 kB / 381.4 MB, free: 15.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.007687, allocations: 0 / 381.4 MB, free: 15.52 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.007688, allocations: 0 / 381.4 MB, free: 15.52 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.129e-06/0.007693, allocations: 3.938 kB / 381.4 MB, free: 15.52 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.0003783/0.008071, allocations: 409.7 kB / 381.8 MB, free: 15.08 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.00811, allocations: 15.97 kB / 381.8 MB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.165e-05/0.008152, allocations: 5.234 kB / 381.8 MB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.785e-05/0.00824, allocations: 108.6 kB / 381.9 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.008253, allocations: 384 / 381.9 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.218e-05/0.008266, allocations: 384 / 381.9 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001015/0.008367, allocations: 67.95 kB / 382 MB, free: 14.85 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.00838, allocations: 192 / 382 MB, free: 14.85 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.008391, allocations: 4.125 kB / 382 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.806e-06/0.008399, allocations: 0 / 382 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.803e-05/0.008417, allocations: 29.7 kB / 382 MB, free: 14.81 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001066/0.008524, allocations: 108.6 kB / 382.1 MB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.965e-05/0.008574, allocations: 56.73 kB / 382.2 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.216e-05/0.008596, allocations: 37.38 kB / 382.2 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.489e-06/0.0086, allocations: 0 / 382.2 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.83e-05/0.008639, allocations: 63.16 kB / 382.3 MB, free: 14.47 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 7.72e-07/0.008639, allocations: 4 kB / 382.3 MB, free: 14.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001951/0.008835, allocations: 114.8 kB / 382.4 MB, free: 14.33 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.43e-05/0.008879, allocations: 96.91 kB / 382.5 MB, free: 14.21 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.429e-05/0.008963, allocations: 149.9 kB / 382.6 MB, free: 14.05 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.889e-06/0.008973, allocations: 25.7 kB / 382.7 MB, free: 14.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.875e-05/0.009012, allocations: 134.9 kB / 382.8 MB, free: 13.88 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.009e-05/0.009032, allocations: 4 kB / 382.8 MB, free: 13.88 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.574e-05/0.009058, allocations: 15.38 kB / 382.8 MB, free: 13.86 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.009183, allocations: 496.1 kB / 383.3 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.384e-05/0.009206, allocations: 29.94 kB / 383.3 MB, free: 13.32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.513e-05/0.009222, allocations: 29.7 kB / 383.4 MB, free: 13.29 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.287e-05/0.009264, allocations: 63.09 kB / 383.4 MB, free: 13.21 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.009267, allocations: 0 / 383.4 MB, free: 13.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.612e-05/0.009353, allocations: 97.03 kB / 383.5 MB, free: 13.1 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.489e-05/0.009388, allocations: 33.7 kB / 383.6 MB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.261e-06/0.009394, allocations: 0 / 383.6 MB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.032e-05/0.009415, allocations: 0 / 383.6 MB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.503e-06/0.009421, allocations: 3.938 kB / 383.6 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.002e-06/0.009427, allocations: 0 / 383.6 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.699e-05/0.009444, allocations: 4.094 kB / 383.6 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.752e-06/0.009451, allocations: 4 kB / 383.6 MB, free: 13.05 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 8.155e-05/0.009532, allocations: 178.3 kB / 383.7 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.075e-05/0.009543, allocations: 7.984 kB / 383.7 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.85e-05/0.009562, allocations: 11.14 kB / 383.8 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.009564, allocations: 0 / 383.8 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.009568, allocations: 3.938 kB / 383.8 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.009571, allocations: 0 / 383.8 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.379e-05/0.009645, allocations: 112.6 kB / 383.9 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.009646, allocations: 0 / 383.9 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.02e-07/0.009647, allocations: 4 kB / 383.9 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.009649, allocations: 0 / 383.9 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.033e-06/0.009656, allocations: 0 / 383.9 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-07/0.009657, allocations: 4 kB / 383.9 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.009658, allocations: 0 / 383.9 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001218/0.00978, allocations: 135.7 kB / 384 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.907e-06/0.009789, allocations: 4 kB / 384 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.647e-05/0.009805, allocations: 3.984 kB / 384 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.897e-06/0.009814, allocations: 4 kB / 384 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.337e-05/0.009827, allocations: 7.875 kB / 384 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.466e-06/0.009831, allocations: 4 kB / 384 MB, free: 12.49 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.526e-05/0.009866, allocations: 123.2 kB / 384.2 MB, free: 12.37 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009866, allocations: 0 / 384.2 MB, free: 12.37 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002508/0.01012, allocations: 67.8 kB / 384.2 MB, free: 12.3 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.0006558/0.01077, allocations: 368.8 kB / 384.6 MB, free: 12.03 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001112/0.01088, allocations: 118.5 kB / 384.7 MB, free: 11.88 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.01089, allocations: 0 / 384.7 MB, free: 11.88 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.404e-05/0.01092, allocations: 92.73 kB / 384.8 MB, free: 11.77 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001122/0.01103, allocations: 8.125 kB / 384.8 MB, free: 11.76 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002068/0.01124, allocations: 132 kB / 384.9 MB, free: 11.6 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.114e-05/0.01127, allocations: 55.36 kB / 385 MB, free: 11.52 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.28e-06/0.01128, allocations: 0 / 385 MB, free: 11.52 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.428e-05/0.01129, allocations: 8.5 kB / 385 MB, free: 11.52 MB / 362.7 MB Notification: Performance of SimCode: time 8.42e-07/0.01129, allocations: 0 / 385 MB, free: 11.52 MB / 362.7 MB Notification: Performance of Templates: time 0.003804/0.01509, allocations: 1.646 MB / 386.6 MB, free: 9.871 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.312887637875974]