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.001301/0.001301, 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.001436/0.001436, allocations: 210.6 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.382/1.382, 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.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.001725/0.001725, allocations: 47.92 kB / 377.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2625, allocations: 53.37 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.003531/0.266, allocations: 1.89 MB / 433 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002087/0.2681, allocations: 1.138 MB / 434.1 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001284/0.2682, allocations: 3.938 kB / 434.1 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006534/0.2689, allocations: 151.5 kB / 434.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004463/0.2693, allocations: 167.4 kB / 434.4 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005102/0.2699, allocations: 166.5 kB / 434.6 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002984/0.2702, allocations: 191.4 kB / 434.8 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000132/0.2703, allocations: 21.53 kB / 434.8 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001346/0.2704, allocations: 83.62 kB / 434.9 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001349/0.2706, allocations: 75.67 kB / 434.9 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.442e-05/0.2706, allocations: 12 kB / 435 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001464/0.2707, allocations: 59.91 kB / 435 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.438e-05/0.2708, allocations: 47.83 kB / 435.1 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.69e-05/0.2709, allocations: 55.61 kB / 435.1 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003443/0.2712, allocations: 209 kB / 435.3 MB, free: 2.383 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2712, allocations: 0 / 435.3 MB, free: 2.383 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2712, allocations: 0 / 435.3 MB, free: 2.383 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.093e-05/0.2713, allocations: 0 / 435.3 MB, free: 2.383 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.0008/0.2721, allocations: 450.7 kB / 435.8 MB, free: 1.906 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.2721, allocations: 16.02 kB / 435.8 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.309e-05/0.2721, allocations: 34.75 kB / 435.8 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.838e-05/0.2722, allocations: 24.8 kB / 435.8 MB, free: 1.824 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000362/0.2726, allocations: 217.1 kB / 436 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.782e-05/0.2726, allocations: 4.375 kB / 436.1 MB, free: 1.582 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.97e-05/0.2726, allocations: 7.938 kB / 436.1 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003467/0.2729, allocations: 137.9 kB / 436.2 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.273, allocations: 0 / 436.2 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.273, allocations: 4 kB / 436.2 MB, free: 1.414 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.273, allocations: 4 kB / 436.2 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001083/0.2731, allocations: 43.89 kB / 436.2 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005138/0.2736, allocations: 321.5 kB / 436.6 MB, free: 1.004 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002501/0.2738, allocations: 103.9 kB / 436.7 MB, free: 0.875 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.009e-05/0.2739, allocations: 50.5 kB / 436.7 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.48e-05/0.274, allocations: 0 / 436.7 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001633/0.2741, allocations: 71.39 kB / 436.8 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 3.016e-06/0.2741, allocations: 7.984 kB / 436.8 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003784/0.2745, allocations: 157.4 kB / 436.9 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.716e-05/0.2746, allocations: 106.8 kB / 437 MB, free: 448 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003028/0.2749, allocations: 273 kB / 437.3 MB, free: 168 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.2749, allocations: 33.7 kB / 437.3 MB, free: 128 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.984e-05/0.275, allocations: 116.1 kB / 437.5 MB, free: 8 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.281e-05/0.275, allocations: 20.08 kB / 437.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.084e-05/0.2751, allocations: 33.59 kB / 437.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.2752, allocations: 331 kB / 437.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.339e-05/0.2753, allocations: 27.98 kB / 437.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001058/0.2754, allocations: 90.84 kB / 438 MB, free: 15.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001361/0.2755, allocations: 76.22 kB / 438 MB, free: 15.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.2755, allocations: 0 / 438 MB, free: 15.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002095/0.2758, allocations: 125.5 kB / 438.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.2758, allocations: 4 kB / 438.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.2758, allocations: 0 / 438.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.2758, allocations: 4 kB / 438.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.167e-05/0.2759, allocations: 15.92 kB / 438.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.2759, allocations: 4 kB / 438.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.45e-05/0.2759, allocations: 11.69 kB / 438.2 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.758e-06/0.2759, allocations: 4 kB / 438.2 MB, free: 15.21 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.0001296/0.2761, allocations: 141.8 kB / 438.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.027e-05/0.2762, allocations: 73.55 kB / 438.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002457/0.2764, allocations: 115.4 kB / 438.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.2764, allocations: 4 kB / 438.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.2764, allocations: 3.938 kB / 438.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.2764, allocations: 0 / 438.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000209/0.2766, allocations: 189 kB / 438.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.2766, allocations: 0 / 438.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.695e-05/0.2767, allocations: 15.94 kB / 438.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.2767, allocations: 0 / 438.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.662e-05/0.2767, allocations: 8 kB / 438.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.2767, allocations: 4.062 kB / 438.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.2767, allocations: 3.938 kB / 438.7 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002571/0.277, allocations: 158.7 kB / 438.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.842e-05/0.277, allocations: 35.78 kB / 438.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.041e-05/0.2771, allocations: 7.938 kB / 438.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.972e-05/0.2771, allocations: 7.984 kB / 438.9 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.604e-05/0.2772, allocations: 7.938 kB / 439 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.827e-05/0.2772, allocations: 11.98 kB / 439 MB, free: 14.35 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002102/0.2774, allocations: 200.5 kB / 439.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2774, allocations: 0 / 439.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000252/0.2777, allocations: 28 kB / 439.2 MB, free: 14.13 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.00208/0.2797, allocations: 1.036 MB / 440.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002193/0.28, allocations: 71.84 kB / 440.3 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.28, allocations: 0 / 440.3 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.344e-05/0.28, allocations: 27.98 kB / 440.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004093/0.2804, allocations: 86.17 kB / 440.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0023/0.2827, allocations: 1.967 MB / 442.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001166/0.2829, allocations: 115.3 kB / 442.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.834e-05/0.2829, allocations: 33.55 kB / 442.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.175e-05/0.283, allocations: 47.42 kB / 442.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.283, allocations: 0 / 442.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03183/0.3149, allocations: 5.348 MB / 447.9 MB, free: 5.492 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.64/10.96, allocations: 10.84 kB / 447.9 MB, free: 5.484 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.327496503014117]