Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001618/0.001618, allocations: 105.2 kB / 19.8 MB, free: 2.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001939/0.001939, allocations: 220 kB / 23 MB, free: 5.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 230.2 MB / 256.2 MB, free: 8.527 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2364/0.2364, allocations: 46.91 MB / 359.4 MB, free: 4.867 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002226/0.002226, allocations: 75.88 kB / 0.4946 GB, free: 8.504 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4325/0.4348, allocations: 65.99 MB / 0.5591 GB, free: 5.086 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001634/0.4364, allocations: 497 kB / 0.5595 GB, free: 4.598 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007015/0.4371, allocations: 265.4 kB / 0.5598 GB, free: 4.34 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.594e-05/0.4371, allocations: 0 / 0.5598 GB, free: 4.34 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.076e-05/0.4371, allocations: 0 / 0.5598 GB, free: 4.34 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.512e-06/0.4371, allocations: 4 kB / 0.5598 GB, free: 4.336 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:409:3-464: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.0003732/0.4375, allocations: 55.83 kB / 0.5598 GB, free: 4.281 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.67e-05/0.4376, allocations: 3.984 kB / 0.5598 GB, free: 4.277 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.483e-05/0.4376, allocations: 0 / 0.5598 GB, free: 4.277 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.661e-05/0.4376, allocations: 3.938 kB / 0.5598 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.717e-05/0.4377, allocations: 7.984 kB / 0.5598 GB, free: 4.266 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.185e-06/0.4377, allocations: 0 / 0.5598 GB, free: 4.266 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001609/0.4378, allocations: 63.95 kB / 0.5599 GB, free: 4.203 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.885e-06/0.4378, allocations: 0 / 0.5599 GB, free: 4.203 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.162e-05/0.4379, allocations: 0 / 0.5599 GB, free: 4.203 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001456/0.438, allocations: 59.66 kB / 0.56 GB, free: 4.148 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.438, allocations: 4 kB / 0.56 GB, free: 4.145 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.438, allocations: 0 / 0.56 GB, free: 4.145 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.438, allocations: 0 / 0.56 GB, free: 4.145 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.0004511/0.4385, allocations: 359.6 kB / 0.5603 GB, free: 3.742 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.4385, allocations: 8.031 kB / 0.5603 GB, free: 3.734 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.75e-05/0.4386, allocations: 0.9375 kB / 0.5603 GB, free: 3.734 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001395/0.4387, allocations: 168.3 kB / 0.5605 GB, free: 3.531 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.4387, allocations: 384 / 0.5605 GB, free: 3.531 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.514e-06/0.4387, allocations: 384 / 0.5605 GB, free: 3.531 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001094/0.4388, allocations: 42.25 kB / 0.5605 GB, free: 3.484 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.4388, allocations: 192 / 0.5605 GB, free: 3.484 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.4388, allocations: 3.938 kB / 0.5605 GB, free: 3.48 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.4389, allocations: 0 / 0.5605 GB, free: 3.48 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.903e-05/0.4389, allocations: 0 / 0.5605 GB, free: 3.48 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001697/0.439, allocations: 149.7 kB / 0.5607 GB, free: 3.285 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.125e-05/0.4391, allocations: 18.52 kB / 0.5607 GB, free: 3.258 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.857e-05/0.4391, allocations: 8.844 kB / 0.5607 GB, free: 3.246 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.119e-06/0.4391, allocations: 4 kB / 0.5607 GB, free: 3.242 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.907e-05/0.4392, allocations: 64.33 kB / 0.5608 GB, free: 3.164 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.4392, allocations: 0 / 0.5608 GB, free: 3.164 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001981/0.4394, allocations: 63.34 kB / 0.5608 GB, free: 3.09 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.018e-05/0.4394, allocations: 77.11 kB / 0.5609 GB, free: 2.996 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.169e-05/0.4395, allocations: 101.7 kB / 0.561 GB, free: 2.887 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.377e-05/0.4395, allocations: 25.7 kB / 0.561 GB, free: 2.855 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.203e-05/0.4395, allocations: 88.2 kB / 0.5611 GB, free: 2.766 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.061e-05/0.4396, allocations: 0 / 0.5611 GB, free: 2.766 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.207e-05/0.4396, allocations: 17.72 kB / 0.5611 GB, free: 2.742 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.4397, allocations: 310.8 kB / 0.5614 GB, free: 2.43 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.061e-05/0.4397, allocations: 0 / 0.5614 GB, free: 2.43 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.037e-06/0.4398, allocations: 4 kB / 0.5614 GB, free: 2.426 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.708e-05/0.4398, allocations: 56.27 kB / 0.5615 GB, free: 2.355 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.4398, allocations: 0 / 0.5615 GB, free: 2.355 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.105e-05/0.4399, allocations: 71.45 kB / 0.5615 GB, free: 2.273 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.36e-05/0.4399, allocations: 33.7 kB / 0.5616 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.4399, allocations: 0 / 0.5616 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.44, allocations: 7.875 kB / 0.5616 GB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.44, allocations: 3.938 kB / 0.5616 GB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.44, allocations: 0 / 0.5616 GB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.664e-05/0.44, allocations: 0 / 0.5616 GB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/0.44, allocations: 0 / 0.5616 GB, free: 2.223 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.0001071/0.4401, allocations: 143.6 kB / 0.5617 GB, free: 2.066 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.584e-06/0.4401, allocations: 0 / 0.5617 GB, free: 2.066 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.839e-06/0.4401, allocations: 7.062 kB / 0.5617 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.4401, allocations: 0 / 0.5617 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.4401, allocations: 0 / 0.5617 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.4401, allocations: 4 kB / 0.5617 GB, free: 2.059 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001066/0.4402, allocations: 141.7 kB / 0.5619 GB, free: 1.871 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.4402, allocations: 3.984 kB / 0.5619 GB, free: 1.867 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.11e-07/0.4402, allocations: 0 / 0.5619 GB, free: 1.867 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.4402, allocations: 0 / 0.5619 GB, free: 1.867 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.4403, allocations: 3.938 kB / 0.5619 GB, free: 1.863 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.4403, allocations: 8 kB / 0.5619 GB, free: 1.855 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.4403, allocations: 0 / 0.5619 GB, free: 1.855 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001044/0.4404, allocations: 90.83 kB / 0.562 GB, free: 1.742 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.98e-05/0.4404, allocations: 85.05 kB / 0.562 GB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.491e-05/0.4404, allocations: 3.938 kB / 0.5621 GB, free: 1.637 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.816e-06/0.4404, allocations: 0 / 0.5621 GB, free: 1.637 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.52e-05/0.4404, allocations: 3.984 kB / 0.5621 GB, free: 1.633 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.415e-06/0.4405, allocations: 8.031 kB / 0.5621 GB, free: 1.625 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.833e-05/0.4405, allocations: 79.28 kB / 0.5621 GB, free: 1.547 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4405, allocations: 3.938 kB / 0.5621 GB, free: 1.543 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002422/0.4407, allocations: 19.92 kB / 0.5622 GB, free: 1.523 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.0007186/0.4415, allocations: 274.4 kB / 0.5624 GB, free: 1.301 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001187/0.4416, allocations: 59.41 kB / 0.5625 GB, free: 1.23 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.4416, allocations: 0 / 0.5625 GB, free: 1.23 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.641e-05/0.4416, allocations: 51.41 kB / 0.5625 GB, free: 1.168 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001412/0.4418, allocations: 12.06 kB / 0.5625 GB, free: 1.156 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000205/0.442, allocations: 92.92 kB / 0.5626 GB, free: 1.039 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003088/0.4423, allocations: 0.6729 MB / 0.5633 GB, free: 348 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.032e-06/0.4423, allocations: 0 / 0.5633 GB, free: 348 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.491e-05/0.4423, allocations: 7.438 kB / 0.5633 GB, free: 340 kB / 398.1 MB Notification: Performance of SimCode: time 4.11e-07/0.4423, allocations: 0 / 0.5633 GB, free: 340 kB / 398.1 MB Notification: Performance of Templates: time 0.003758/0.446, allocations: 0.7929 MB / 0.5641 GB, free: 15.54 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.316088384017348]