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.001451/0.001451, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 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.002045/0.002045, allocations: 210.2 kB / 23.73 MB, free: 4.523 MB / 14.72 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.618/1.618, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 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.23/0.23, allocations: 46.95 MB / 360.9 MB, free: 4.051 MB / 286.1 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 0.002075/0.002075, allocations: 63.89 kB / 0.4966 GB, free: 7.266 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4214/0.4235, allocations: 66.04 MB / 0.561 GB, free: 4.215 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001831/0.4253, allocations: 492.9 kB / 0.5615 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007528/0.426, allocations: 253.6 kB / 0.5618 GB, free: 3.484 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.231e-05/0.4261, allocations: 4 kB / 0.5618 GB, free: 3.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.606e-05/0.4261, allocations: 4 kB / 0.5618 GB, free: 3.477 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.864e-06/0.4261, allocations: 0 / 0.5618 GB, free: 3.477 MB / 398.1 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.0004088/0.4265, allocations: 59.75 kB / 0.5618 GB, free: 3.418 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.821e-05/0.4266, allocations: 0 / 0.5618 GB, free: 3.418 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.777e-05/0.4266, allocations: 0 / 0.5618 GB, free: 3.418 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.012e-05/0.4266, allocations: 4 kB / 0.5618 GB, free: 3.414 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.768e-05/0.4267, allocations: 0 / 0.5618 GB, free: 3.414 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.016e-05/0.4267, allocations: 3.938 kB / 0.5618 GB, free: 3.41 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001809/0.4269, allocations: 71.92 kB / 0.5619 GB, free: 3.34 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.488e-06/0.4269, allocations: 0 / 0.5619 GB, free: 3.34 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.532e-05/0.4269, allocations: 0 / 0.5619 GB, free: 3.34 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001495/0.427, allocations: 55.73 kB / 0.562 GB, free: 3.289 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.427, allocations: 0 / 0.562 GB, free: 3.289 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.427, allocations: 3.938 kB / 0.562 GB, free: 3.285 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.592e-06/0.4271, allocations: 0 / 0.562 GB, free: 3.285 MB / 398.1 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.0004218/0.4275, allocations: 286.5 kB / 0.5622 GB, free: 2.973 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.4275, allocations: 11.97 kB / 0.5622 GB, free: 2.961 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.024e-05/0.4276, allocations: 0.9375 kB / 0.5622 GB, free: 2.961 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000116/0.4277, allocations: 110.5 kB / 0.5624 GB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.756e-05/0.4277, allocations: 4.375 kB / 0.5624 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.678e-06/0.4277, allocations: 384 / 0.5624 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001375/0.4278, allocations: 59.95 kB / 0.5624 GB, free: 2.754 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.4279, allocations: 4.188 kB / 0.5624 GB, free: 2.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.4279, allocations: 3.938 kB / 0.5624 GB, free: 2.746 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.4279, allocations: 0 / 0.5624 GB, free: 2.746 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.787e-05/0.4279, allocations: 33.64 kB / 0.5625 GB, free: 2.707 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001408/0.428, allocations: 97.33 kB / 0.5625 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.898e-05/0.4281, allocations: 40.28 kB / 0.5626 GB, free: 2.527 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.799e-05/0.4282, allocations: 34.66 kB / 0.5626 GB, free: 2.484 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.73e-06/0.4282, allocations: 0 / 0.5626 GB, free: 2.484 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.151e-05/0.4282, allocations: 64.25 kB / 0.5627 GB, free: 2.406 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.4282, allocations: 4 kB / 0.5627 GB, free: 2.402 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002515/0.4285, allocations: 118.7 kB / 0.5628 GB, free: 2.262 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.202e-05/0.4286, allocations: 81.11 kB / 0.5629 GB, free: 2.164 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.529e-05/0.4286, allocations: 97.8 kB / 0.563 GB, free: 2.059 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.426e-05/0.4286, allocations: 25.7 kB / 0.563 GB, free: 2.027 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.299e-05/0.4287, allocations: 80.14 kB / 0.5631 GB, free: 1.945 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.661e-05/0.4287, allocations: 4 kB / 0.5631 GB, free: 1.941 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.359e-05/0.4287, allocations: 13.72 kB / 0.5631 GB, free: 1.922 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.4289, allocations: 310.8 kB / 0.5634 GB, free: 1.609 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.779e-05/0.4289, allocations: 25.7 kB / 0.5634 GB, free: 1.578 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.35e-05/0.429, allocations: 33.83 kB / 0.5634 GB, free: 1.539 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.859e-05/0.429, allocations: 64.27 kB / 0.5635 GB, free: 1.461 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.429, allocations: 3.938 kB / 0.5635 GB, free: 1.457 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.723e-05/0.4291, allocations: 85.09 kB / 0.5636 GB, free: 1.355 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.396e-05/0.4292, allocations: 33.7 kB / 0.5636 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.4292, allocations: 0 / 0.5636 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.4292, allocations: 0 / 0.5636 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.366e-06/0.4292, allocations: 3.938 kB / 0.5636 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.511e-06/0.4292, allocations: 0 / 0.5636 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.66e-05/0.4292, allocations: 0 / 0.5636 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-06/0.4292, allocations: 8.094 kB / 0.5636 GB, free: 1.305 MB / 398.1 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.0001034/0.4293, allocations: 139.5 kB / 0.5638 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.207e-05/0.4294, allocations: 8 kB / 0.5638 GB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.314e-05/0.4294, allocations: 3 kB / 0.5638 GB, free: 1.141 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.4294, allocations: 7.875 kB / 0.5638 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.4294, allocations: 0 / 0.5638 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.4294, allocations: 0 / 0.5638 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.695e-05/0.4295, allocations: 93.33 kB / 0.5639 GB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.4295, allocations: 7.984 kB / 0.5639 GB, free: 1.004 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.4295, allocations: 0 / 0.5639 GB, free: 1.004 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.4295, allocations: 4 kB / 0.5639 GB, free: 1 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.909e-06/0.4295, allocations: 0 / 0.5639 GB, free: 1 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.4295, allocations: 0 / 0.5639 GB, free: 1 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.4295, allocations: 7.875 kB / 0.5639 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001373/0.4296, allocations: 116.5 kB / 0.564 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.035e-06/0.4296, allocations: 4 kB / 0.564 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.295e-05/0.4297, allocations: 4 kB / 0.564 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.636e-06/0.4297, allocations: 0 / 0.564 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.873e-05/0.4297, allocations: 7.922 kB / 0.564 GB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-06/0.4297, allocations: 0 / 0.564 GB, free: 0.832 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.018e-05/0.4297, allocations: 83.31 kB / 0.5641 GB, free: 0.75 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4297, allocations: 0 / 0.5641 GB, free: 0.75 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002527/0.43, allocations: 23.92 kB / 0.5641 GB, free: 0.7266 MB / 398.1 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.0007961/0.4308, allocations: 281.3 kB / 0.5644 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001525/0.4309, allocations: 118.8 kB / 0.5645 GB, free: 392 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.4309, allocations: 0 / 0.5645 GB, free: 392 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.707e-05/0.431, allocations: 85.09 kB / 0.5646 GB, free: 288 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001378/0.4311, allocations: 7.875 kB / 0.5646 GB, free: 280 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002436/0.4314, allocations: 110.7 kB / 0.5647 GB, free: 136 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.924e-05/0.4314, allocations: 63.42 kB / 0.5647 GB, free: 52 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.131e-06/0.4314, allocations: 0 / 0.5647 GB, free: 52 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.663e-05/0.4314, allocations: 7.438 kB / 0.5648 GB, free: 44 kB / 398.1 MB Notification: Performance of SimCode: time 2.91e-07/0.4314, allocations: 0 / 0.5648 GB, free: 44 kB / 398.1 MB Notification: Performance of Templates: time 0.003862/0.4353, allocations: 0.8057 MB / 0.5655 GB, free: 15.25 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.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.464541187975556]