Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.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.001399/0.001399, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001816/0.001816, allocations: 207 kB / 23.73 MB, free: 4.387 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.408/1.408, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001547/0.001547, allocations: 55.91 kB / 377.7 MB, free: 2.934 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2591, allocations: 53.36 MB / 431.1 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.003908/0.263, allocations: 1.886 MB / 433 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002145/0.2652, allocations: 1.138 MB / 434.1 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001312/0.2653, allocations: 3.938 kB / 434.1 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006391/0.2659, allocations: 155.5 kB / 434.3 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004051/0.2663, allocations: 151.4 kB / 434.4 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000478/0.2668, allocations: 178.5 kB / 434.6 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002585/0.2671, allocations: 183.5 kB / 434.8 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001167/0.2672, allocations: 25.53 kB / 434.8 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001183/0.2673, allocations: 79.64 kB / 434.9 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001269/0.2674, allocations: 71.67 kB / 434.9 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.562e-05/0.2675, allocations: 16 kB / 435 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001514/0.2676, allocations: 67.89 kB / 435 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.037e-05/0.2677, allocations: 39.84 kB / 435.1 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.541e-05/0.2678, allocations: 59.59 kB / 435.1 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003207/0.2681, allocations: 209 kB / 435.3 MB, free: 2.363 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.2681, allocations: 0 / 435.3 MB, free: 2.363 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2681, allocations: 0 / 435.3 MB, free: 2.363 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.2681, allocations: 3.938 kB / 435.3 MB, free: 2.359 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007575/0.2688, allocations: 454.7 kB / 435.8 MB, free: 1.879 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.2689, allocations: 12.03 kB / 435.8 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.474e-05/0.2689, allocations: 42.73 kB / 435.8 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.829e-05/0.269, allocations: 20.8 kB / 435.8 MB, free: 1.797 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003391/0.2693, allocations: 209.1 kB / 436 MB, free: 1.566 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.774e-05/0.2693, allocations: 8.375 kB / 436.1 MB, free: 1.559 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.655e-05/0.2693, allocations: 7.938 kB / 436.1 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003214/0.2697, allocations: 141.9 kB / 436.2 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.2697, allocations: 4 kB / 436.2 MB, free: 1.387 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.2697, allocations: 0 / 436.2 MB, free: 1.387 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.2697, allocations: 0 / 436.2 MB, free: 1.387 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001064/0.2698, allocations: 39.92 kB / 436.2 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004975/0.2703, allocations: 321.5 kB / 436.6 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002245/0.2705, allocations: 111.8 kB / 436.7 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001/0.2706, allocations: 46.5 kB / 436.7 MB, free: 0.793 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.2706, allocations: 8 kB / 436.7 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001738/0.2708, allocations: 75.39 kB / 436.8 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.443e-06/0.2708, allocations: 0 / 436.8 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003929/0.2712, allocations: 145.5 kB / 436.9 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.287e-05/0.2713, allocations: 114.7 kB / 437 MB, free: 424 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003341/0.2716, allocations: 273 kB / 437.3 MB, free: 144 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.558e-05/0.2717, allocations: 29.7 kB / 437.3 MB, free: 108 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000126/0.2718, allocations: 124.4 kB / 437.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.57e-05/0.2718, allocations: 15.89 kB / 437.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.521e-05/0.2719, allocations: 33.67 kB / 437.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001931/0.2721, allocations: 330.8 kB / 437.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.553e-05/0.2721, allocations: 23.98 kB / 437.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001243/0.2723, allocations: 86.84 kB / 437.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001531/0.2724, allocations: 76.22 kB / 438 MB, free: 15.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.2724, allocations: 4 kB / 438 MB, free: 15.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000216/0.2726, allocations: 117.5 kB / 438.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.2727, allocations: 8 kB / 438.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.84e-06/0.2727, allocations: 0 / 438.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.2727, allocations: 4 kB / 438.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.027e-05/0.2728, allocations: 15.92 kB / 438.2 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/0.2728, allocations: 7.984 kB / 438.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.198e-05/0.2729, allocations: 19.83 kB / 438.2 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.005e-05/0.2729, allocations: 4 kB / 438.2 MB, free: 15.19 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001456/0.273, allocations: 146 kB / 438.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/0.2731, allocations: 61.53 kB / 438.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002602/0.2734, allocations: 111.4 kB / 438.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/0.2734, allocations: 7.938 kB / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.2734, allocations: 4.25 kB / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.2734, allocations: 3.938 kB / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002353/0.2736, allocations: 196.6 kB / 438.7 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.2736, allocations: 0 / 438.7 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.887e-05/0.2737, allocations: 15.98 kB / 438.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.2737, allocations: 4 kB / 438.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/0.2737, allocations: 0 / 438.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.978e-06/0.2737, allocations: 4 kB / 438.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2737, allocations: 0 / 438.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002677/0.274, allocations: 166.6 kB / 438.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.593e-05/0.274, allocations: 31.78 kB / 438.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.123e-05/0.2741, allocations: 8 kB / 438.9 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.637e-05/0.2741, allocations: 4 kB / 438.9 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.567e-05/0.2742, allocations: 11.92 kB / 439 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.551e-05/0.2742, allocations: 8 kB / 439 MB, free: 14.33 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002225/0.2744, allocations: 200.5 kB / 439.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2744, allocations: 0 / 439.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002639/0.2747, allocations: 31.98 kB / 439.2 MB, free: 14.1 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.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 (10): * Single equations (assignments): 8 * 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.002132/0.2768, allocations: 1.042 MB / 440.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002118/0.277, allocations: 71.89 kB / 440.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.277, allocations: 4.25 kB / 440.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.259e-05/0.2771, allocations: 27.98 kB / 440.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004072/0.2775, allocations: 66.62 kB / 440.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002514/0.28, allocations: 1.959 MB / 442.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001228/0.2801, allocations: 131.4 kB / 442.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.63e-05/0.2802, allocations: 17.48 kB / 442.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001446/0.2804, allocations: 55.41 kB / 442.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2804, allocations: 0 / 442.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03289/0.3132, allocations: 5.346 MB / 447.9 MB, free: 5.477 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.24, allocations: 3.984 kB / 447.9 MB, free: 5.473 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.98963e-05 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable sample1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv failed! Error: Could not read variable subSample1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv. Warning: Get data of variable subSample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.805908816866577]