Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001394/0.001394, allocations: 81.58 kB / 20.68 MB, free: 1.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 151.1 kB / 23.94 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 173.3 MB / 200.4 MB, free: 12.89 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 318.9 MB, free: 3.555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.352e-05/2.5e-05, allocations: 2.281 kB / 318.9 MB, free: 3.551 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.002413/0.002438, allocations: 1.542 MB / 320.5 MB, free: 2.504 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003833/0.002822, allocations: 149.4 kB / 320.6 MB, free: 2.406 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.725e-05/0.002899, allocations: 1.594 kB / 320.6 MB, free: 2.406 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.503e-05/0.002954, allocations: 5.062 kB / 320.6 MB, free: 2.402 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001299/0.003084, allocations: 11.36 kB / 320.6 MB, free: 2.395 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002434/0.003327, allocations: 40.83 kB / 320.7 MB, free: 2.371 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001088/0.003436, allocations: 32.97 kB / 320.7 MB, free: 2.355 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.003539, allocations: 16.17 kB / 320.7 MB, free: 2.348 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.64e-05/0.003585, allocations: 22.03 kB / 320.7 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.6e-05/0.003631, allocations: 6.672 kB / 320.8 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.803e-05/0.003659, allocations: 6.344 kB / 320.8 MB, free: 2.332 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.191e-05/0.003671, allocations: 6.719 kB / 320.8 MB, free: 2.328 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.989e-05/0.003721, allocations: 13.25 kB / 320.8 MB, free: 2.32 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.408e-05/0.003755, allocations: 11.8 kB / 320.8 MB, free: 2.316 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001112/0.003866, allocations: 46.61 kB / 320.8 MB, free: 2.293 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.00387, allocations: 5 kB / 320.8 MB, free: 2.289 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.21e-07/0.00387, allocations: 0 / 320.8 MB, free: 2.289 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.569e-06/0.003875, allocations: 0.6562 kB / 320.8 MB, free: 2.289 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003792/0.004254, allocations: 298.7 kB / 321.1 MB, free: 1.992 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.00429, allocations: 10.84 kB / 321.1 MB, free: 1.992 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.593e-05/0.004326, allocations: 8.703 kB / 321.2 MB, free: 1.988 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002079/0.004534, allocations: 132.6 kB / 321.3 MB, free: 1.852 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.004545, allocations: 1.531 kB / 321.3 MB, free: 1.852 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.041e-05/0.004556, allocations: 3.875 kB / 321.3 MB, free: 1.852 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002685/0.004824, allocations: 111.6 kB / 321.4 MB, free: 1.77 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.004834, allocations: 4.125 kB / 321.4 MB, free: 1.766 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.237e-06/0.004843, allocations: 1.656 kB / 321.4 MB, free: 1.766 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.004848, allocations: 8.312 kB / 321.4 MB, free: 1.758 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.872e-05/0.004926, allocations: 24.91 kB / 321.4 MB, free: 1.75 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002289/0.005155, allocations: 208.6 kB / 321.6 MB, free: 1.531 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001706/0.005326, allocations: 61.31 kB / 321.7 MB, free: 1.473 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.192e-05/0.005388, allocations: 30.72 kB / 321.7 MB, free: 1.449 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.605e-05/0.005404, allocations: 1.125 kB / 321.7 MB, free: 1.449 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.005e-05/0.005424, allocations: 34.08 kB / 321.8 MB, free: 1.41 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.253e-06/0.005425, allocations: 0 / 321.8 MB, free: 1.41 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.000243/0.005668, allocations: 84.31 kB / 321.8 MB, free: 1.355 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.773e-05/0.005716, allocations: 88.72 kB / 321.9 MB, free: 1.254 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.365e-05/0.005809, allocations: 127.9 kB / 322.1 MB, free: 1.145 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.636e-06/0.005818, allocations: 29.7 kB / 322.1 MB, free: 1.109 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.281e-05/0.005851, allocations: 85.22 kB / 322.2 MB, free: 1.027 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.14e-05/0.005862, allocations: 0 / 322.2 MB, free: 1.027 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.675e-05/0.005889, allocations: 20.05 kB / 322.2 MB, free: 1.004 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 4.377e-05/0.005933, allocations: 314.2 kB / 322.5 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.917e-05/0.005972, allocations: 5.188 kB / 322.5 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.871e-05/0.006001, allocations: 15.5 kB / 322.5 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.98e-05/0.00606, allocations: 15.72 kB / 322.5 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.006062, allocations: 0 / 322.5 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.192e-05/0.006154, allocations: 41.11 kB / 322.6 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.006172, allocations: 12.56 kB / 322.6 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.473e-06/0.006178, allocations: 3.938 kB / 322.6 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.006196, allocations: 2.016 kB / 322.6 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.449e-05/0.00624, allocations: 11.17 kB / 322.6 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.006246, allocations: 0.75 kB / 322.6 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.8e-05/0.006274, allocations: 7.031 kB / 322.6 MB, free: 0.625 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-06/0.00628, allocations: 0 / 322.6 MB, free: 0.625 MB / 286.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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.912e-05/0.006339, allocations: 113.5 kB / 322.7 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.729e-05/0.006406, allocations: 47.2 kB / 322.8 MB, free: 484 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.363e-05/0.00644, allocations: 16.89 kB / 322.8 MB, free: 464 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.006442, allocations: 1.438 kB / 322.8 MB, free: 464 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.006445, allocations: 0 / 322.8 MB, free: 464 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.006449, allocations: 2.359 kB / 322.8 MB, free: 464 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001093/0.006558, allocations: 122.2 kB / 322.9 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.00656, allocations: 0 / 322.9 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.011e-05/0.00661, allocations: 9.719 kB / 322.9 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.006612, allocations: 1.438 kB / 322.9 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.265e-06/0.006621, allocations: 4.641 kB / 322.9 MB, free: 320 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.006624, allocations: 9.281 kB / 322.9 MB, free: 312 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.006626, allocations: 1.5 kB / 322.9 MB, free: 312 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00015/0.006776, allocations: 162.3 kB / 323.1 MB, free: 160 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.397e-05/0.00681, allocations: 12.09 kB / 323.1 MB, free: 156 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.68e-05/0.006827, allocations: 6.438 kB / 323.1 MB, free: 152 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.617e-05/0.006893, allocations: 10.8 kB / 323.1 MB, free: 144 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.91e-05/0.006942, allocations: 1.922 kB / 323.1 MB, free: 144 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-06/0.006948, allocations: 1.766 kB / 323.1 MB, free: 144 kB / 286.1 MB Notification: Performance of sorting global known variables: time 5.836e-05/0.007007, allocations: 106.5 kB / 323.2 MB, free: 60 kB / 286.1 MB Notification: Performance of sort global known variables: time 9e-08/0.007007, allocations: 1.375 kB / 323.2 MB, free: 60 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.000224/0.007231, allocations: 2.812 kB / 323.2 MB, free: 60 kB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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.0001137/0.007344, allocations: 103.8 kB / 323.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001475/0.007492, allocations: 25.14 kB / 323.4 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.007494, allocations: 1.438 kB / 323.4 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.482e-05/0.007529, allocations: 6.203 kB / 323.4 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003501/0.007879, allocations: 21.75 kB / 323.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003549/0.008234, allocations: 151.9 kB / 323.5 MB, free: 15.81 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.943e-05/0.008333, allocations: 76.2 kB / 323.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.903e-05/0.008362, allocations: 6.094 kB / 323.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.505e-05/0.008398, allocations: 15.31 kB / 323.6 MB, free: 15.72 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.008398, allocations: 4 kB / 323.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of Templates: time 0.003435/0.01183, allocations: 0.5012 MB / 324.1 MB, free: 15.63 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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: 4.28379937261343]