Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.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.001649/0.001649, allocations: 114.9 kB / 19.04 MB, free: 3.281 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.002185/0.002185, allocations: 190 kB / 22.21 MB, free: 112 kB / 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.665/1.665, allocations: 225.6 MB / 250.8 MB, free: 13.39 MB / 206.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.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001652/0.001652, allocations: 43.92 kB / 368.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.335/0.3366, allocations: 52.15 MB / 420.9 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.003378/0.34, allocations: 1.541 MB / 422.4 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004921/0.3405, allocations: 143.5 kB / 422.5 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001046/0.3406, allocations: 0 / 422.5 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.813e-05/0.3407, allocations: 3.938 kB / 422.5 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000152/0.3408, allocations: 11.92 kB / 422.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002607/0.3411, allocations: 31.91 kB / 422.6 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001434/0.3412, allocations: 31.92 kB / 422.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001252/0.3413, allocations: 11.98 kB / 422.6 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.759e-05/0.3414, allocations: 11.94 kB / 422.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.89e-05/0.3414, allocations: 23.86 kB / 422.7 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.418e-05/0.3415, allocations: 3.938 kB / 422.7 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.235e-05/0.3415, allocations: 4 kB / 422.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.354e-05/0.3415, allocations: 19.91 kB / 422.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.188e-05/0.3416, allocations: 15.88 kB / 422.7 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001442/0.3417, allocations: 48.97 kB / 422.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3417, allocations: 3.938 kB / 422.8 MB, free: 13.22 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3417, allocations: 0 / 422.8 MB, free: 13.22 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.3417, allocations: 0 / 422.8 MB, free: 13.22 MB / 334.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.0005788/0.3423, allocations: 379.2 kB / 423.1 MB, free: 12.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/0.3424, allocations: 12.03 kB / 423.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.423e-05/0.3424, allocations: 4.891 kB / 423.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003219/0.3427, allocations: 192.2 kB / 423.3 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.3427, allocations: 8.312 kB / 423.3 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.686e-05/0.3428, allocations: 4.375 kB / 423.3 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003232/0.3431, allocations: 117.6 kB / 423.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.3431, allocations: 192 / 423.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.57e-05/0.3431, allocations: 7.938 kB / 423.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.3431, allocations: 0 / 423.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.717e-05/0.3432, allocations: 19.98 kB / 423.5 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004222/0.3436, allocations: 265.7 kB / 423.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003994/0.344, allocations: 134.2 kB / 423.9 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.274e-05/0.3441, allocations: 33.7 kB / 423.9 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.684e-05/0.3441, allocations: 0 / 423.9 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.795e-05/0.3441, allocations: 34.56 kB / 423.9 MB, free: 11.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 9.22e-07/0.3441, allocations: 0 / 423.9 MB, free: 11.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002737/0.3444, allocations: 77.56 kB / 424 MB, free: 11.74 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.591e-05/0.3445, allocations: 81.11 kB / 424.1 MB, free: 11.64 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001446/0.3446, allocations: 142 kB / 424.2 MB, free: 11.49 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.99e-05/0.3446, allocations: 29.64 kB / 424.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.256e-05/0.3447, allocations: 88.27 kB / 424.4 MB, free: 11.37 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.798e-06/0.3447, allocations: 4 kB / 424.4 MB, free: 11.36 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.293e-05/0.3447, allocations: 21.67 kB / 424.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.3449, allocations: 314.8 kB / 424.7 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.319e-05/0.345, allocations: 12 kB / 424.7 MB, free: 11.01 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.831e-05/0.345, allocations: 27.42 kB / 424.7 MB, free: 10.97 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.134e-05/0.3451, allocations: 51.36 kB / 424.8 MB, free: 10.91 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.3451, allocations: 0 / 424.8 MB, free: 10.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000141/0.3453, allocations: 77.58 kB / 424.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/0.3453, allocations: 8 kB / 424.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.3453, allocations: 0 / 424.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.3453, allocations: 0 / 424.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.147e-05/0.3454, allocations: 11.94 kB / 424.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.3454, allocations: 0 / 424.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.791e-05/0.3454, allocations: 7.984 kB / 424.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.3454, allocations: 4 kB / 424.9 MB, free: 10.79 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (step.y,sample1.y,assignClock.y,assignClock.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 0.0001197/0.3455, allocations: 121.7 kB / 425 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.77e-05/0.3456, allocations: 57.61 kB / 425.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.944e-05/0.3457, allocations: 12.25 kB / 425.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.3457, allocations: 336 / 425.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.27e-05/0.3457, allocations: 4 kB / 425.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3457, allocations: 0 / 425.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002231/0.3459, allocations: 169.6 kB / 425.2 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.3459, allocations: 4 kB / 425.2 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.188e-05/0.346, allocations: 11.97 kB / 425.3 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.865e-06/0.346, allocations: 4 kB / 425.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.824e-06/0.346, allocations: 0 / 425.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.346, allocations: 4 kB / 425.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.346, allocations: 0 / 425.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001976/0.3462, allocations: 172.2 kB / 425.4 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.49e-05/0.3463, allocations: 93.05 kB / 425.5 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.464e-05/0.3463, allocations: 0 / 425.5 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.93e-05/0.3464, allocations: 4 kB / 425.5 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.434e-05/0.3464, allocations: 7.938 kB / 425.5 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.316e-06/0.3464, allocations: 0 / 425.5 MB, free: 10.03 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.034e-05/0.3465, allocations: 110.8 kB / 425.6 MB, free: 9.926 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3465, allocations: 0 / 425.6 MB, free: 9.926 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002195/0.3467, allocations: 4 kB / 425.6 MB, free: 9.922 MB / 334.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: 4 (step.y,assignClock.u,assignClock.y,sample1.y) * 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.0001681/0.3469, allocations: 95.25 kB / 425.7 MB, free: 9.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001862/0.347, allocations: 32.11 kB / 425.8 MB, free: 9.789 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3471, allocations: 4.062 kB / 425.8 MB, free: 9.785 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.802e-05/0.3471, allocations: 11.98 kB / 425.8 MB, free: 9.773 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003394/0.3474, allocations: 23.95 kB / 425.8 MB, free: 9.75 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000371/0.3478, allocations: 154.2 kB / 426 MB, free: 9.57 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004119/0.3482, allocations: 0.6922 MB / 426.7 MB, free: 8.852 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.301e-05/0.3482, allocations: 8.047 kB / 426.7 MB, free: 8.844 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.413e-05/0.3483, allocations: 11.44 kB / 426.7 MB, free: 8.832 MB / 334.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3483, allocations: 0 / 426.7 MB, free: 8.832 MB / 334.1 MB Notification: Performance of Templates: time 0.004028/0.3523, allocations: 0.4966 MB / 427.2 MB, free: 8.336 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample1/Sample1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.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.915725636295974]