Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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.001264/0.001264, allocations: 107.5 kB / 20.43 MB, free: 1.066 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.0014/0.0014, allocations: 187.5 kB / 23.7 MB, free: 4.188 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.359/1.359, allocations: 225.7 MB / 252.5 MB, free: 12.87 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001573/0.001573, allocations: 47.92 kB / 370.4 MB, free: 9.688 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2663, allocations: 52.17 MB / 422.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.003923/0.2703, allocations: 1.904 MB / 424.5 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00191/0.2722, allocations: 1.017 MB / 425.5 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000124/0.2723, allocations: 7.938 kB / 425.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006111/0.2729, allocations: 158.5 kB / 425.6 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002949/0.2732, allocations: 123.5 kB / 425.8 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006002/0.2738, allocations: 214.6 kB / 426 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002719/0.2741, allocations: 195.4 kB / 426.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000117/0.2742, allocations: 21.61 kB / 426.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001178/0.2743, allocations: 83.62 kB / 426.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001285/0.2744, allocations: 79.61 kB / 426.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.612e-05/0.2745, allocations: 8 kB / 426.4 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001535/0.2746, allocations: 67.89 kB / 426.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.846e-05/0.2747, allocations: 43.84 kB / 426.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.208e-05/0.2748, allocations: 55.61 kB / 426.5 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003425/0.2751, allocations: 212.9 kB / 426.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2751, allocations: 4 kB / 426.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.2751, allocations: 0 / 426.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.2751, allocations: 0 / 426.7 MB, free: 10.23 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.0007994/0.2759, allocations: 462.7 kB / 427.2 MB, free: 9.738 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.276, allocations: 8.031 kB / 427.2 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.215e-05/0.276, allocations: 38.75 kB / 427.2 MB, free: 9.684 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.992e-05/0.2761, allocations: 24.73 kB / 427.3 MB, free: 9.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003571/0.2764, allocations: 221.1 kB / 427.5 MB, free: 9.422 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.105e-05/0.2765, allocations: 8.312 kB / 427.5 MB, free: 9.414 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.241e-05/0.2765, allocations: 11.94 kB / 427.5 MB, free: 9.402 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000356/0.2768, allocations: 166.5 kB / 427.7 MB, free: 9.219 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.2768, allocations: 7.938 kB / 427.7 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.2769, allocations: 4 kB / 427.7 MB, free: 9.207 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.2769, allocations: 0 / 427.7 MB, free: 9.207 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001115/0.277, allocations: 35.98 kB / 427.7 MB, free: 9.172 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004855/0.2775, allocations: 334.3 kB / 428 MB, free: 8.793 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002537/0.2777, allocations: 130.5 kB / 428.2 MB, free: 8.629 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/0.2778, allocations: 63.36 kB / 428.2 MB, free: 8.555 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.24e-05/0.2778, allocations: 3.984 kB / 428.2 MB, free: 8.551 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001549/0.278, allocations: 75.38 kB / 428.3 MB, free: 8.465 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.413e-06/0.278, allocations: 0 / 428.3 MB, free: 8.465 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003846/0.2784, allocations: 165.4 kB / 428.5 MB, free: 8.297 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.537e-05/0.2785, allocations: 144.4 kB / 428.6 MB, free: 8.125 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000299/0.2788, allocations: 273 kB / 428.9 MB, free: 7.848 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.135e-05/0.2788, allocations: 25.7 kB / 428.9 MB, free: 7.816 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.072e-05/0.2789, allocations: 116.4 kB / 429 MB, free: 7.695 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.95e-05/0.2789, allocations: 27.84 kB / 429 MB, free: 7.668 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.387e-05/0.279, allocations: 33.67 kB / 429.1 MB, free: 7.629 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.2791, allocations: 330.8 kB / 429.4 MB, free: 7.297 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.661e-05/0.2792, allocations: 28.36 kB / 429.4 MB, free: 7.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001232/0.2793, allocations: 108.5 kB / 429.5 MB, free: 7.133 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001567/0.2795, allocations: 93.88 kB / 429.6 MB, free: 7.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.2795, allocations: 0 / 429.6 MB, free: 7.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002314/0.2797, allocations: 133.5 kB / 429.7 MB, free: 6.883 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.2797, allocations: 7.984 kB / 429.7 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.2797, allocations: 7.938 kB / 429.8 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.2797, allocations: 0 / 429.8 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.158e-05/0.2798, allocations: 15.94 kB / 429.8 MB, free: 6.852 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.116e-06/0.2798, allocations: 4 kB / 429.8 MB, free: 6.848 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.637e-05/0.2799, allocations: 19.88 kB / 429.8 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.074e-05/0.2799, allocations: 4 kB / 429.8 MB, free: 6.824 MB / 334.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.0001328/0.2801, allocations: 143.2 kB / 429.9 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.2802, allocations: 81.48 kB / 430 MB, free: 6.59 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002439/0.2804, allocations: 111.3 kB / 430.1 MB, free: 6.473 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.2804, allocations: 4 kB / 430.1 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.2804, allocations: 4 kB / 430.1 MB, free: 6.465 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.2804, allocations: 7.938 kB / 430.1 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002036/0.2806, allocations: 188.6 kB / 430.3 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2806, allocations: 0 / 430.3 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.606e-05/0.2807, allocations: 11.98 kB / 430.3 MB, free: 6.219 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.2807, allocations: 4.094 kB / 430.3 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.31e-05/0.2807, allocations: 4 kB / 430.3 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.2807, allocations: 0 / 430.3 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.339e-06/0.2807, allocations: 3.938 kB / 430.3 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002858/0.281, allocations: 187.4 kB / 430.5 MB, free: 5.996 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.589e-05/0.2811, allocations: 31.88 kB / 430.6 MB, free: 5.965 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.075e-05/0.2811, allocations: 7.984 kB / 430.6 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.374e-05/0.2811, allocations: 4 kB / 430.6 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.622e-05/0.2812, allocations: 11.92 kB / 430.6 MB, free: 5.941 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.842e-05/0.2812, allocations: 12 kB / 430.6 MB, free: 5.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002/0.2814, allocations: 196.5 kB / 430.8 MB, free: 5.738 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2814, allocations: 4 kB / 430.8 MB, free: 5.734 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002615/0.2817, allocations: 31.89 kB / 430.8 MB, free: 5.703 MB / 334.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.002053/0.2837, allocations: 1.047 MB / 431.9 MB, free: 4.805 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002234/0.2839, allocations: 84.09 kB / 432 MB, free: 4.723 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2839, allocations: 4.062 kB / 432 MB, free: 4.719 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.094e-05/0.284, allocations: 27.98 kB / 432 MB, free: 4.691 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004218/0.2844, allocations: 73.95 kB / 432.1 MB, free: 4.621 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002374/0.2868, allocations: 2.037 MB / 434.1 MB, free: 2.438 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001347/0.287, allocations: 135.7 kB / 434.2 MB, free: 2.285 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.771e-05/0.287, allocations: 21.62 kB / 434.2 MB, free: 2.262 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.876e-05/0.2871, allocations: 55.41 kB / 434.3 MB, free: 2.207 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2871, allocations: 0 / 434.3 MB, free: 2.207 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03264/0.3198, allocations: 5.687 MB / 440 MB, free: 12.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.49/10.81, allocations: 4.062 kB / 440 MB, free: 12.6 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79247e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.179246425628662]