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.001057/0.001057, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.00158/0.00158, allocations: 165.9 kB / 24.99 MB, free: 8.793 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 1.008/1.008, allocations: 177.1 MB / 205.3 MB, free: 5.641 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.2591/0.2591, allocations: 34.26 MB / 296 MB, free: 0.7695 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.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 2.004e-06/2.004e-06, allocations: 0 / 378 MB, free: 3.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.634e-05/2.834e-05, allocations: 2.312 kB / 378 MB, free: 3.016 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001359/0.001387, allocations: 0.4965 MB / 378.5 MB, free: 2.52 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005146/0.001902, allocations: 255.3 kB / 378.7 MB, free: 2.27 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.504e-05/0.001927, allocations: 0 / 378.7 MB, free: 2.27 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.425e-05/0.001941, allocations: 0 / 378.7 MB, free: 2.27 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.571e-06/0.001947, allocations: 0 / 378.7 MB, free: 2.27 MB / 346.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.0003064/0.002253, allocations: 59.62 kB / 378.8 MB, free: 2.211 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.903e-05/0.002302, allocations: 4 kB / 378.8 MB, free: 2.207 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.617e-05/0.002338, allocations: 0 / 378.8 MB, free: 2.207 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.622e-05/0.002365, allocations: 3.984 kB / 378.8 MB, free: 2.203 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.68e-05/0.002392, allocations: 0 / 378.8 MB, free: 2.203 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.979e-06/0.002401, allocations: 4 kB / 378.8 MB, free: 2.199 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000135/0.002537, allocations: 75.81 kB / 378.9 MB, free: 2.125 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.183e-06/0.002544, allocations: 0 / 378.9 MB, free: 2.125 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.898e-05/0.002563, allocations: 0 / 378.9 MB, free: 2.125 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000126/0.002689, allocations: 55.88 kB / 378.9 MB, free: 2.07 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.002691, allocations: 0 / 378.9 MB, free: 2.07 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.002692, allocations: 0 / 378.9 MB, free: 2.07 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.897e-06/0.002696, allocations: 0 / 378.9 MB, free: 2.07 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.0002833/0.002979, allocations: 389.9 kB / 379.3 MB, free: 1.645 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.003016, allocations: 12.02 kB / 379.3 MB, free: 1.633 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.465e-05/0.003051, allocations: 0.9375 kB / 379.3 MB, free: 1.633 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.426e-05/0.003115, allocations: 112.6 kB / 379.4 MB, free: 1.496 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.628e-06/0.003125, allocations: 384 / 379.4 MB, free: 1.496 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.045e-06/0.003133, allocations: 4.359 kB / 379.4 MB, free: 1.492 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.548e-05/0.003218, allocations: 59.91 kB / 379.5 MB, free: 1.422 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.59e-06/0.003224, allocations: 192 / 379.5 MB, free: 1.422 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.003232, allocations: 384 / 379.5 MB, free: 1.422 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.00324, allocations: 384 / 379.5 MB, free: 1.422 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.025e-05/0.00326, allocations: 33.64 kB / 379.5 MB, free: 1.383 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.158e-05/0.003352, allocations: 108.6 kB / 379.6 MB, free: 1.242 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.568e-05/0.003397, allocations: 60.8 kB / 379.7 MB, free: 1.164 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.012e-05/0.003418, allocations: 41.39 kB / 379.7 MB, free: 1.113 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.068e-06/0.003422, allocations: 0 / 379.7 MB, free: 1.113 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.712e-05/0.003459, allocations: 67.09 kB / 379.8 MB, free: 1.031 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 8.21e-07/0.00346, allocations: 0 / 379.8 MB, free: 1.031 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001638/0.003623, allocations: 118.8 kB / 379.9 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.886e-05/0.003662, allocations: 77.11 kB / 380 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.335e-05/0.003706, allocations: 142.2 kB / 380.1 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.727e-06/0.003714, allocations: 25.7 kB / 380.2 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.979e-05/0.003744, allocations: 130.9 kB / 380.3 MB, free: 492 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.506e-05/0.003759, allocations: 4.328 kB / 380.3 MB, free: 488 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.54e-05/0.003785, allocations: 19.5 kB / 380.3 MB, free: 460 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.003917, allocations: 0.4922 MB / 380.8 MB, free: 15.95 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.129e-05/0.003938, allocations: 25.7 kB / 380.8 MB, free: 15.91 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.445e-05/0.003953, allocations: 29.7 kB / 380.9 MB, free: 15.88 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.564e-05/0.003998, allocations: 67.03 kB / 380.9 MB, free: 15.8 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.004, allocations: 0 / 380.9 MB, free: 15.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.549e-05/0.004075, allocations: 93.05 kB / 381 MB, free: 15.69 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.905e-05/0.004104, allocations: 29.7 kB / 381 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.00411, allocations: 8 kB / 381 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.004121, allocations: 4.094 kB / 381 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.072e-06/0.004122, allocations: 3.938 kB / 381.1 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.243e-06/0.00413, allocations: 0 / 381.1 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.43e-05/0.004144, allocations: 3.938 kB / 381.1 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.00415, allocations: 0 / 381.1 MB, free: 15.63 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 7.538e-05/0.004225, allocations: 190.3 kB / 381.2 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.402e-06/0.004232, allocations: 0 / 381.2 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.278e-06/0.004241, allocations: 10.94 kB / 381.3 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.004242, allocations: 0 / 381.3 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.004245, allocations: 0 / 381.3 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.255e-06/0.004248, allocations: 4 kB / 381.3 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.844e-05/0.004306, allocations: 108.6 kB / 381.4 MB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.11e-07/0.004307, allocations: 0 / 381.4 MB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.004307, allocations: 0 / 381.4 MB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.004309, allocations: 4 kB / 381.4 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.961e-06/0.004315, allocations: 0 / 381.4 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.654e-06/0.004317, allocations: 3.984 kB / 381.4 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.004318, allocations: 0 / 381.4 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.972e-05/0.004407, allocations: 127.8 kB / 381.5 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.931e-06/0.004413, allocations: 7.984 kB / 381.5 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.267e-05/0.004426, allocations: 0 / 381.5 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.344e-06/0.004433, allocations: 4.031 kB / 381.5 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.009e-05/0.004443, allocations: 0 / 381.5 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.165e-06/0.004446, allocations: 0 / 381.5 MB, free: 15.1 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.99e-05/0.004476, allocations: 123.2 kB / 381.6 MB, free: 14.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.004476, allocations: 3.938 kB / 381.6 MB, free: 14.97 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002087/0.004684, allocations: 19.94 kB / 381.6 MB, free: 14.95 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.0006082/0.005292, allocations: 316.6 kB / 382 MB, free: 14.72 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001199/0.005412, allocations: 122.5 kB / 382.1 MB, free: 14.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.005414, allocations: 4.062 kB / 382.1 MB, free: 14.57 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.68e-05/0.005451, allocations: 88.8 kB / 382.2 MB, free: 14.46 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001217/0.005572, allocations: 4 kB / 382.2 MB, free: 14.45 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004953/0.006068, allocations: 117.6 kB / 382.3 MB, free: 14.3 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.251e-05/0.0061, allocations: 51.36 kB / 382.3 MB, free: 14.23 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.101e-06/0.006106, allocations: 0 / 382.3 MB, free: 14.23 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.391e-05/0.00612, allocations: 8.5 kB / 382.3 MB, free: 14.22 MB / 362.7 MB Notification: Performance of SimCode: time 1.001e-06/0.006121, allocations: 0 / 382.3 MB, free: 14.22 MB / 362.7 MB Notification: Performance of Templates: time 0.002979/0.0091, allocations: 0.8571 MB / 383.2 MB, free: 13.37 MB / 362.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.154891655081883]