Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.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.001276/0.001276, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001471/0.001471, allocations: 204.9 kB / 23.73 MB, free: 4.379 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.404/1.404, allocations: 230.6 MB / 257.5 MB, free: 7.781 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.UpSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002139/0.002139, allocations: 47.92 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2624, allocations: 53.37 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003527/0.2659, allocations: 1.984 MB / 433.1 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002022/0.2679, allocations: 1.196 MB / 434.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001096/0.268, allocations: 7.938 kB / 434.3 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005837/0.2686, allocations: 159.4 kB / 434.4 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003815/0.269, allocations: 163.3 kB / 434.6 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000553/0.2696, allocations: 214.8 kB / 434.8 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002985/0.2699, allocations: 231.4 kB / 435 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.27, allocations: 40.36 kB / 435.1 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001313/0.2701, allocations: 95.56 kB / 435.2 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001505/0.2703, allocations: 107.5 kB / 435.3 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.617e-05/0.2703, allocations: 12 kB / 435.3 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001401/0.2704, allocations: 63.95 kB / 435.3 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.239e-05/0.2705, allocations: 59.77 kB / 435.4 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.871e-05/0.2706, allocations: 71.53 kB / 435.5 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003474/0.2709, allocations: 256.7 kB / 435.7 MB, free: 1.996 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.271, allocations: 4 kB / 435.7 MB, free: 1.992 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.271, allocations: 0 / 435.7 MB, free: 1.992 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.521e-06/0.271, allocations: 0 / 435.7 MB, free: 1.992 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007702/0.2717, allocations: 0.4888 MB / 436.2 MB, free: 1.469 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.2718, allocations: 12.03 kB / 436.2 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.925e-05/0.2718, allocations: 46.73 kB / 436.3 MB, free: 1.402 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.482e-05/0.2719, allocations: 24.8 kB / 436.3 MB, free: 1.379 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003575/0.2722, allocations: 233 kB / 436.5 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.056e-05/0.2722, allocations: 8.375 kB / 436.5 MB, free: 1.121 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.066e-05/0.2723, allocations: 19.94 kB / 436.5 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005266/0.2728, allocations: 287.2 kB / 436.8 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.2728, allocations: 0 / 436.8 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.56e-05/0.2728, allocations: 4 kB / 436.8 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.2728, allocations: 8 kB / 436.8 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001549/0.273, allocations: 63.89 kB / 436.9 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004841/0.2735, allocations: 341.5 kB / 437.2 MB, free: 352 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003263/0.2738, allocations: 175.9 kB / 437.4 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001371/0.2739, allocations: 74.55 kB / 437.5 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.191e-05/0.274, allocations: 4 kB / 437.5 MB, free: 60 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001692/0.2741, allocations: 79.33 kB / 437.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 4.238e-06/0.2741, allocations: 4 kB / 437.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004949/0.2746, allocations: 237.3 kB / 437.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.248e-05/0.2747, allocations: 118.8 kB / 437.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003001/0.275, allocations: 289 kB / 438.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.567e-05/0.275, allocations: 29.7 kB / 438.2 MB, free: 15.26 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.772e-05/0.2751, allocations: 124.6 kB / 438.3 MB, free: 15.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.602e-05/0.2752, allocations: 31.83 kB / 438.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.785e-05/0.2752, allocations: 49.94 kB / 438.4 MB, free: 15.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.2754, allocations: 334.8 kB / 438.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.198e-05/0.2755, allocations: 44.44 kB / 438.8 MB, free: 14.67 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000193/0.2757, allocations: 190.9 kB / 439 MB, free: 14.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002569/0.2759, allocations: 207.2 kB / 439.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.2759, allocations: 0 / 439.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003607/0.2763, allocations: 229.1 kB / 439.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.2763, allocations: 8 kB / 439.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.2763, allocations: 4 kB / 439.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.2763, allocations: 4 kB / 439.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.241e-05/0.2764, allocations: 27.86 kB / 439.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.2764, allocations: 4 kB / 439.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001092/0.2765, allocations: 24.33 kB / 439.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.328e-05/0.2766, allocations: 23.98 kB / 439.5 MB, free: 13.84 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,and1.y,and1.u2,and1.u1,upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001493/0.2767, allocations: 163.9 kB / 439.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001806/0.2769, allocations: 121.4 kB / 439.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002516/0.2771, allocations: 119.3 kB / 439.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.2771, allocations: 7.984 kB / 439.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.2771, allocations: 0 / 439.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.2772, allocations: 3.938 kB / 439.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002027/0.2774, allocations: 204.9 kB / 440.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.2774, allocations: 4.469 kB / 440.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.715e-05/0.2774, allocations: 15.94 kB / 440.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.094e-06/0.2774, allocations: 7.984 kB / 440.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.465e-05/0.2774, allocations: 4 kB / 440.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.556e-06/0.2774, allocations: 4 kB / 440.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2774, allocations: 3.938 kB / 440.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003523/0.2778, allocations: 230.1 kB / 440.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.114e-05/0.2779, allocations: 51.7 kB / 440.4 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.43e-05/0.2779, allocations: 4 kB / 440.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.211e-05/0.278, allocations: 11.98 kB / 440.4 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.031e-05/0.278, allocations: 11.94 kB / 440.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.256e-05/0.278, allocations: 15.98 kB / 440.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002044/0.2782, allocations: 208.4 kB / 440.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2782, allocations: 0 / 440.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002996/0.2785, allocations: 43.94 kB / 440.7 MB, free: 12.54 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: 20 ($whenCondition1,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * 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.002242/0.2808, allocations: 1.187 MB / 441.9 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003134/0.2811, allocations: 147.6 kB / 442 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2811, allocations: 0 / 442 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.635e-05/0.2812, allocations: 31.92 kB / 442.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004688/0.2816, allocations: 112.3 kB / 442.2 MB, free: 11.22 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002759/0.2844, allocations: 2.421 MB / 444.6 MB, free: 8.609 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001432/0.2846, allocations: 145.5 kB / 444.7 MB, free: 8.438 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.039e-05/0.2846, allocations: 26.67 kB / 444.8 MB, free: 8.414 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.2847, allocations: 71.41 kB / 444.8 MB, free: 8.344 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2847, allocations: 0 / 444.8 MB, free: 8.344 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03348/0.3182, allocations: 6.468 MB / 451.3 MB, free: 1.953 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.45/10.77, allocations: 8.062 kB / 451.3 MB, free: 1.945 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.78926e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.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.169778740993934]