Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.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.0008661/0.0008661, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008281/0.0008281, allocations: 153 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.917/0.917, allocations: 173.4 MB / 200.4 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] 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.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.134e-05/2.3e-05, allocations: 2.281 kB / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.002878/0.002901, allocations: 1.954 MB / 320.4 MB, free: 4.406 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001361/0.004262, allocations: 1.067 MB / 321.4 MB, free: 3.332 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001273/0.00439, allocations: 7.938 kB / 321.5 MB, free: 3.324 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00057/0.00496, allocations: 159.4 kB / 321.6 MB, free: 3.168 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002531/0.005213, allocations: 119.4 kB / 321.7 MB, free: 3.051 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000532/0.005745, allocations: 250.1 kB / 322 MB, free: 2.809 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002561/0.006001, allocations: 235.3 kB / 322.2 MB, free: 2.578 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001197/0.006121, allocations: 32.56 kB / 322.2 MB, free: 2.543 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001386/0.006259, allocations: 119.7 kB / 322.3 MB, free: 2.426 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001129/0.006372, allocations: 83.7 kB / 322.4 MB, free: 2.344 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.72e-05/0.006399, allocations: 12 kB / 322.4 MB, free: 2.332 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000142/0.006541, allocations: 67.83 kB / 322.5 MB, free: 2.266 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.831e-05/0.00661, allocations: 51.83 kB / 322.6 MB, free: 2.215 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.339e-05/0.006673, allocations: 55.78 kB / 322.6 MB, free: 2.16 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002997/0.006973, allocations: 251.2 kB / 322.9 MB, free: 1.914 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.006976, allocations: 0 / 322.9 MB, free: 1.914 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.006978, allocations: 0 / 322.9 MB, free: 1.914 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.006983, allocations: 4 kB / 322.9 MB, free: 1.91 MB / 282.7 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.0006554/0.007639, allocations: 489.8 kB / 323.3 MB, free: 1.398 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.007675, allocations: 8.922 kB / 323.3 MB, free: 1.391 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.585e-05/0.00771, allocations: 46.73 kB / 323.4 MB, free: 1.336 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.552e-05/0.007756, allocations: 24.8 kB / 323.4 MB, free: 1.312 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002669/0.008023, allocations: 228.8 kB / 323.6 MB, free: 1.059 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.814e-05/0.008041, allocations: 12.38 kB / 323.7 MB, free: 1.047 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.611e-05/0.008057, allocations: 16.38 kB / 323.7 MB, free: 1.031 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003941/0.008451, allocations: 282 kB / 323.9 MB, free: 0.7344 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.00846, allocations: 4 kB / 323.9 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.313e-05/0.008473, allocations: 8 kB / 324 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.008478, allocations: 0 / 324 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001076/0.008586, allocations: 71.89 kB / 324 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003956/0.008982, allocations: 337.4 kB / 324.4 MB, free: 280 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002126/0.009194, allocations: 167.9 kB / 324.5 MB, free: 84 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.743e-05/0.009292, allocations: 86.66 kB / 324.6 MB, free: 15.99 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.413e-05/0.009316, allocations: 4 kB / 324.6 MB, free: 15.98 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001268/0.009443, allocations: 75.39 kB / 324.7 MB, free: 15.9 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.292e-06/0.009444, allocations: 0 / 324.7 MB, free: 15.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003417/0.009785, allocations: 229.3 kB / 324.9 MB, free: 15.67 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.073e-05/0.009846, allocations: 122.8 kB / 325 MB, free: 15.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001919/0.01004, allocations: 277.6 kB / 325.3 MB, free: 15.25 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.508e-05/0.01005, allocations: 29.7 kB / 325.3 MB, free: 15.21 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.772e-05/0.01011, allocations: 112.6 kB / 325.4 MB, free: 15.1 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.339e-05/0.01013, allocations: 27.83 kB / 325.5 MB, free: 15.07 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.442e-05/0.01018, allocations: 45.66 kB / 325.5 MB, free: 15.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.205e-05/0.01026, allocations: 338.8 kB / 325.8 MB, free: 14.68 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.388e-05/0.0103, allocations: 27.98 kB / 325.9 MB, free: 14.65 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.054e-05/0.01039, allocations: 103.1 kB / 326 MB, free: 14.53 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.746e-05/0.01048, allocations: 101.3 kB / 326.1 MB, free: 14.41 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.01049, allocations: 0 / 326.1 MB, free: 14.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000147/0.01063, allocations: 145.5 kB / 326.2 MB, free: 14.26 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.01065, allocations: 8 kB / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.01065, allocations: 320 / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.01066, allocations: 4 kB / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.619e-05/0.01072, allocations: 19.92 kB / 326.2 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.01073, allocations: 4 kB / 326.2 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.34e-05/0.01077, allocations: 11.89 kB / 326.3 MB, free: 14.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.965e-06/0.01078, allocations: 7.984 kB / 326.3 MB, free: 14.21 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,$CLKPRE.upSample2.b_super,upSample2.b_super,$CLKPRE.upSample1.b_super,upSample1.b_super,$CLKPRE.upSample2.b,upSample2.b,$CLKPRE.upSample1.b,upSample1.b) * 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 (16): * Single equations (assignments): 16 * 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 9.958e-05/0.01088, allocations: 161.8 kB / 326.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.01099, allocations: 125.5 kB / 326.5 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001471/0.01114, allocations: 115.4 kB / 326.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.01114, allocations: 4 kB / 326.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.01114, allocations: 0 / 326.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.01115, allocations: 0 / 326.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001461/0.01129, allocations: 208.5 kB / 326.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.01129, allocations: 0 / 326.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.972e-05/0.01132, allocations: 20.39 kB / 326.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.01133, allocations: 7.938 kB / 326.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.858e-06/0.01134, allocations: 4 kB / 326.9 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.01134, allocations: 4 kB / 326.9 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.01134, allocations: 0 / 326.9 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002109/0.01155, allocations: 241.2 kB / 327.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.542e-05/0.01161, allocations: 39.84 kB / 327.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.168e-05/0.01163, allocations: 4 kB / 327.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.937e-05/0.01167, allocations: 12.05 kB / 327.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.411e-05/0.0117, allocations: 11.98 kB / 327.2 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.386e-05/0.01172, allocations: 4 kB / 327.2 MB, free: 13.18 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001263/0.01184, allocations: 205.2 kB / 327.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01184, allocations: 0 / 327.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001847/0.01203, allocations: 39.94 kB / 327.4 MB, free: 12.94 MB / 298.7 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.0013/0.01333, allocations: 1.195 MB / 328.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001775/0.01351, allocations: 103.8 kB / 328.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.01351, allocations: 0 / 328.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.191e-05/0.01355, allocations: 28.3 kB / 328.8 MB, free: 11.77 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003079/0.01386, allocations: 123.3 kB / 328.9 MB, free: 11.65 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001898/0.01576, allocations: 2.143 MB / 331 MB, free: 9.379 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.291e-05/0.01585, allocations: 144.8 kB / 331.2 MB, free: 9.219 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.315e-05/0.0159, allocations: 21.94 kB / 331.2 MB, free: 9.195 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.665e-05/0.01598, allocations: 64.48 kB / 331.3 MB, free: 9.133 MB / 298.7 MB Notification: Performance of SimCode: time 7.31e-07/0.01598, allocations: 0 / 331.3 MB, free: 9.133 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02134/0.03732, allocations: 6.353 MB / 337.6 MB, free: 2.848 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.885/6.923, allocations: 13.73 kB / 337.6 MB, free: 2.84 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.78926e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 8.689669169485569]