Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.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.000909/0.000909, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.0009106/0.0009106, allocations: 161.4 kB / 25.61 MB, free: 8.582 MB / 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 0.9824/0.9824, allocations: 177.1 MB / 206 MB, free: 4.473 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.1353/0.1353, allocations: 34.26 MB / 296.9 MB, free: 13.91 MB / 282.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.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.273e-06/1.273e-06, allocations: 0 / 379.3 MB, free: 23.44 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.808e-05/1.936e-05, allocations: 6.25 kB / 379.3 MB, free: 23.43 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0008958/0.0009151, allocations: 491.6 kB / 379.7 MB, free: 22.95 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004173/0.001332, allocations: 259.3 kB / 380 MB, free: 22.7 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.363e-05/0.001366, allocations: 0 / 380 MB, free: 22.7 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.799e-05/0.001384, allocations: 0 / 380 MB, free: 22.7 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 6.522e-06/0.001391, allocations: 0 / 380 MB, free: 22.7 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:398:3-453:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0002752/0.001666, allocations: 51.75 kB / 380 MB, free: 22.64 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 6.591e-05/0.001732, allocations: 8 kB / 380.1 MB, free: 22.64 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.536e-05/0.001767, allocations: 3.984 kB / 380.1 MB, free: 22.63 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.383e-05/0.001791, allocations: 4 kB / 380.1 MB, free: 22.63 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.791e-05/0.001819, allocations: 0 / 380.1 MB, free: 22.63 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 9.277e-06/0.001828, allocations: 0 / 380.1 MB, free: 22.63 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001193/0.001947, allocations: 63.89 kB / 380.1 MB, free: 22.57 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 7.574e-06/0.001955, allocations: 0 / 380.1 MB, free: 22.57 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.574e-05/0.001971, allocations: 0 / 380.1 MB, free: 22.57 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001053/0.002076, allocations: 71.72 kB / 380.2 MB, free: 22.5 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.953e-06/0.002078, allocations: 3.938 kB / 380.2 MB, free: 22.49 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.002079, allocations: 0 / 380.2 MB, free: 22.49 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.399e-06/0.002083, allocations: 4 kB / 380.2 MB, free: 22.49 MB / 314.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.0002237/0.002307, allocations: 381.9 kB / 380.6 MB, free: 22.07 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.002338, allocations: 12.03 kB / 380.6 MB, free: 22.06 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.614e-05/0.002365, allocations: 4.938 kB / 380.6 MB, free: 22.05 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.345e-05/0.002408, allocations: 108.6 kB / 380.7 MB, free: 21.92 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.002e-05/0.002418, allocations: 384 / 380.7 MB, free: 21.92 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.139e-06/0.002423, allocations: 384 / 380.7 MB, free: 21.92 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.182e-05/0.002485, allocations: 55.97 kB / 380.8 MB, free: 21.86 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.002492, allocations: 192 / 380.8 MB, free: 21.86 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.562e-06/0.002499, allocations: 384 / 380.8 MB, free: 21.86 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/0.002504, allocations: 384 / 380.8 MB, free: 21.86 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.207e-05/0.002516, allocations: 37.62 kB / 380.8 MB, free: 21.81 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.313e-05/0.00258, allocations: 101.1 kB / 380.9 MB, free: 21.69 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.106e-05/0.002621, allocations: 52.8 kB / 380.9 MB, free: 21.62 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.758e-05/0.002638, allocations: 45.39 kB / 381 MB, free: 21.56 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.898e-06/0.002642, allocations: 0 / 381 MB, free: 21.56 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.004e-05/0.002672, allocations: 63.16 kB / 381 MB, free: 21.48 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 5.71e-07/0.002673, allocations: 0 / 381 MB, free: 21.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001838/0.002857, allocations: 122.7 kB / 381.2 MB, free: 21.34 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.995e-05/0.002886, allocations: 77.11 kB / 381.2 MB, free: 21.25 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.951e-05/0.002916, allocations: 142.2 kB / 381.4 MB, free: 21.09 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.655e-06/0.002924, allocations: 25.7 kB / 381.4 MB, free: 21.06 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.645e-05/0.00294, allocations: 135 kB / 381.5 MB, free: 20.93 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/0.002959, allocations: 0 / 381.5 MB, free: 20.93 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.697e-05/0.002986, allocations: 19.36 kB / 381.6 MB, free: 20.9 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.316e-05/0.003049, allocations: 0.4922 MB / 382 MB, free: 20.39 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.647e-05/0.003065, allocations: 25.7 kB / 382.1 MB, free: 20.36 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.112e-05/0.003076, allocations: 25.7 kB / 382.1 MB, free: 20.33 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.829e-05/0.003115, allocations: 63.09 kB / 382.2 MB, free: 20.25 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.003116, allocations: 0 / 382.2 MB, free: 20.25 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.254e-05/0.003179, allocations: 93.03 kB / 382.3 MB, free: 20.14 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.43e-05/0.003203, allocations: 29.8 kB / 382.3 MB, free: 20.11 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.003208, allocations: 4 kB / 382.3 MB, free: 20.11 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.003221, allocations: 4 kB / 382.3 MB, free: 20.1 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.162e-06/0.003222, allocations: 0 / 382.3 MB, free: 20.1 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.176e-06/0.003225, allocations: 0 / 382.3 MB, free: 20.1 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.325e-05/0.003238, allocations: 0 / 382.3 MB, free: 20.1 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.172e-06/0.003245, allocations: 0 / 382.3 MB, free: 20.1 MB / 314.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 5.418e-05/0.003299, allocations: 190.2 kB / 382.5 MB, free: 19.9 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.374e-06/0.003306, allocations: 4.344 kB / 382.5 MB, free: 19.89 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.466e-06/0.003315, allocations: 3 kB / 382.5 MB, free: 19.89 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.003317, allocations: 0 / 382.5 MB, free: 19.89 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.783e-06/0.003318, allocations: 8 kB / 382.5 MB, free: 19.89 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.003322, allocations: 0 / 382.5 MB, free: 19.89 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.975e-05/0.003372, allocations: 93.2 kB / 382.6 MB, free: 19.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.003373, allocations: 0 / 382.6 MB, free: 19.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.003373, allocations: 0 / 382.6 MB, free: 19.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.02e-07/0.003374, allocations: 0 / 382.6 MB, free: 19.77 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.759e-06/0.003379, allocations: 7.938 kB / 382.6 MB, free: 19.76 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.00338, allocations: 0 / 382.6 MB, free: 19.76 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.003381, allocations: 3.984 kB / 382.6 MB, free: 19.76 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.769e-05/0.003459, allocations: 135.7 kB / 382.7 MB, free: 19.59 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.869e-06/0.003464, allocations: 8.031 kB / 382.7 MB, free: 19.58 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.179e-05/0.003476, allocations: 11.97 kB / 382.7 MB, free: 19.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.312e-06/0.003482, allocations: 0 / 382.7 MB, free: 19.57 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.958e-06/0.003492, allocations: 4 kB / 382.7 MB, free: 19.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-06/0.003494, allocations: 0 / 382.7 MB, free: 19.57 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.565e-05/0.003509, allocations: 119.2 kB / 382.9 MB, free: 19.45 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.003509, allocations: 0 / 382.9 MB, free: 19.45 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002241/0.003734, allocations: 19.94 kB / 382.9 MB, free: 19.43 MB / 314.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.0005374/0.004271, allocations: 309.9 kB / 383.2 MB, free: 19.2 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 7.758e-05/0.004348, allocations: 130.5 kB / 383.3 MB, free: 19.04 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.00435, allocations: 0 / 383.3 MB, free: 19.04 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.831e-05/0.004368, allocations: 92.73 kB / 383.4 MB, free: 18.93 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001155/0.004484, allocations: 3.938 kB / 383.4 MB, free: 18.93 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001276/0.004611, allocations: 107.6 kB / 383.5 MB, free: 18.79 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.795e-05/0.004629, allocations: 59.22 kB / 383.6 MB, free: 18.71 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.401e-06/0.004635, allocations: 0 / 383.6 MB, free: 18.71 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.992e-05/0.004665, allocations: 74.2 kB / 383.6 MB, free: 18.63 MB / 314.7 MB Notification: Performance of SimCode: time 8.02e-07/0.004665, allocations: 0 / 383.6 MB, free: 18.63 MB / 314.7 MB Notification: Performance of Templates: time 0.002592/0.007258, allocations: 0.9342 MB / 384.6 MB, free: 17.7 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestInternal/TestInternal.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.1740119769237936]