Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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.00171/0.00171, allocations: 107.2 kB / 20.44 MB, free: 1.199 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.001409/0.001409, allocations: 210.3 kB / 23.73 MB, free: 4.41 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.374/1.374, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001582/0.001582, allocations: 51.91 kB / 377.7 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2491/0.2507, allocations: 53.36 MB / 431.1 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.003495/0.2542, allocations: 1.908 MB / 433 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002318/0.2565, allocations: 1.181 MB / 434.2 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001378/0.2566, allocations: 7.938 kB / 434.2 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006095/0.2572, allocations: 155.5 kB / 434.3 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004403/0.2577, allocations: 155.4 kB / 434.5 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005394/0.2582, allocations: 179.4 kB / 434.7 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003098/0.2585, allocations: 203.4 kB / 434.9 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.2586, allocations: 21.59 kB / 434.9 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001289/0.2588, allocations: 91.62 kB / 435 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001373/0.2589, allocations: 79.55 kB / 435 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.836e-05/0.2589, allocations: 12 kB / 435.1 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000154/0.2591, allocations: 55.97 kB / 435.1 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.639e-05/0.2592, allocations: 51.83 kB / 435.2 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.979e-05/0.2593, allocations: 51.61 kB / 435.2 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003788/0.2596, allocations: 232.8 kB / 435.4 MB, free: 2.309 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2596, allocations: 4 kB / 435.4 MB, free: 2.305 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2596, allocations: 0 / 435.4 MB, free: 2.305 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.173e-05/0.2597, allocations: 0 / 435.4 MB, free: 2.305 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008587/0.2605, allocations: 458.7 kB / 435.9 MB, free: 1.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.2606, allocations: 8.031 kB / 435.9 MB, free: 1.812 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.1e-05/0.2606, allocations: 42.67 kB / 435.9 MB, free: 1.762 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.927e-05/0.2607, allocations: 24.8 kB / 436 MB, free: 1.738 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004004/0.2611, allocations: 225 kB / 436.2 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.96e-05/0.2611, allocations: 8.375 kB / 436.2 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.69e-05/0.2611, allocations: 11.94 kB / 436.2 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003786/0.2615, allocations: 166.6 kB / 436.4 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.2615, allocations: 4 kB / 436.4 MB, free: 1.285 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.548e-05/0.2615, allocations: 4 kB / 436.4 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.2615, allocations: 0 / 436.4 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001206/0.2616, allocations: 47.89 kB / 436.4 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005355/0.2622, allocations: 334.4 kB / 436.7 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002685/0.2624, allocations: 138.5 kB / 436.9 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001066/0.2625, allocations: 51.42 kB / 436.9 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.068e-05/0.2626, allocations: 4 kB / 436.9 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001837/0.2628, allocations: 71.33 kB / 437 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.673e-06/0.2628, allocations: 0 / 437 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004301/0.2632, allocations: 165.4 kB / 437.2 MB, free: 376 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.972e-05/0.2633, allocations: 140.5 kB / 437.3 MB, free: 204 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003548/0.2636, allocations: 285.8 kB / 437.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.519e-05/0.2637, allocations: 29.7 kB / 437.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.761e-05/0.2638, allocations: 124.4 kB / 437.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.527e-05/0.2638, allocations: 23.83 kB / 437.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.34e-05/0.2639, allocations: 29.72 kB / 437.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.264, allocations: 331.2 kB / 438.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.661e-05/0.2641, allocations: 27.98 kB / 438.1 MB, free: 15.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001285/0.2642, allocations: 103.6 kB / 438.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001618/0.2644, allocations: 101.9 kB / 438.3 MB, free: 15.08 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.2644, allocations: 0 / 438.3 MB, free: 15.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.00025/0.2646, allocations: 141.4 kB / 438.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.2646, allocations: 4 kB / 438.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/0.2646, allocations: 4 kB / 438.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.2647, allocations: 0 / 438.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.835e-05/0.2648, allocations: 15.94 kB / 438.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.2648, allocations: 7.984 kB / 438.5 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.875e-05/0.2648, allocations: 11.94 kB / 438.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.012e-05/0.2648, allocations: 4.312 kB / 438.5 MB, free: 14.89 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001501/0.265, allocations: 150.8 kB / 438.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/0.2651, allocations: 85.42 kB / 438.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002634/0.2654, allocations: 119.4 kB / 438.9 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.2654, allocations: 0 / 438.9 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.259e-06/0.2654, allocations: 0 / 438.9 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.2654, allocations: 7.938 kB / 438.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002307/0.2656, allocations: 196.6 kB / 439.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2656, allocations: 0 / 439.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.581e-05/0.2657, allocations: 11.94 kB / 439.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.2657, allocations: 4.094 kB / 439.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.403e-05/0.2657, allocations: 8 kB / 439.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.2657, allocations: 7.922 kB / 439.1 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.2657, allocations: 4 kB / 439.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002842/0.266, allocations: 175.5 kB / 439.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.99e-05/0.266, allocations: 31.89 kB / 439.3 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.032e-05/0.2661, allocations: 4 kB / 439.3 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.65e-05/0.2661, allocations: 4 kB / 439.3 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.75e-05/0.2662, allocations: 11.92 kB / 439.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.2662, allocations: 15.94 kB / 439.3 MB, free: 13.97 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002318/0.2664, allocations: 213.1 kB / 439.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2664, allocations: 0 / 439.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002739/0.2667, allocations: 35.89 kB / 439.6 MB, free: 13.73 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002162/0.2689, allocations: 1.05 MB / 440.6 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000246/0.2691, allocations: 84.14 kB / 440.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2691, allocations: 4.062 kB / 440.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.79e-05/0.2692, allocations: 27.94 kB / 440.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004312/0.2696, allocations: 71.02 kB / 440.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002462/0.2721, allocations: 2.057 MB / 442.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001374/0.2722, allocations: 127.9 kB / 443 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.274e-05/0.2723, allocations: 25.91 kB / 443 MB, free: 10.28 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.2724, allocations: 59.41 kB / 443.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2724, allocations: 0 / 443.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03309/0.3055, allocations: 5.773 MB / 448.9 MB, free: 4.535 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/10.98, allocations: 11.22 kB / 448.9 MB, free: 4.527 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79247e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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: 13.37469379696995]