Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001516/0.001516, allocations: 117.2 kB / 17.78 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001609/0.001609, allocations: 200.6 kB / 18.73 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001805/0.001805, allocations: 67.88 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2547/0.2565, allocations: 50.54 MB / 408.7 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003983/0.2606, allocations: 2.006 MB / 410.8 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002277/0.2629, allocations: 1.247 MB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001872/0.2631, allocations: 8 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006566/0.2638, allocations: 155.4 kB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004807/0.2643, allocations: 166.8 kB / 412.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007029/0.265, allocations: 199.4 kB / 412.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003636/0.2654, allocations: 239.4 kB / 412.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001412/0.2655, allocations: 44.28 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001592/0.2657, allocations: 91.62 kB / 412.9 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001612/0.2659, allocations: 99.47 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.327e-05/0.2659, allocations: 16 kB / 413 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001514/0.2661, allocations: 59.97 kB / 413.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.341e-05/0.2662, allocations: 55.83 kB / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001131/0.2663, allocations: 91.41 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004091/0.2667, allocations: 262 kB / 413.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.2667, allocations: 0 / 413.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2667, allocations: 0 / 413.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.2667, allocations: 3.938 kB / 413.5 MB, free: 12.8 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.0009345/0.2677, allocations: 0.566 MB / 414 MB, free: 12.18 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.2677, allocations: 8.031 kB / 414 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.531e-05/0.2678, allocations: 46.75 kB / 414.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.274e-05/0.2679, allocations: 32.78 kB / 414.1 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003984/0.2683, allocations: 286.9 kB / 414.4 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/0.2683, allocations: 12.36 kB / 414.4 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.738e-05/0.2683, allocations: 15.94 kB / 414.4 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000558/0.2689, allocations: 302.5 kB / 414.7 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.2689, allocations: 3.938 kB / 414.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.632e-05/0.2689, allocations: 4 kB / 414.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.269, allocations: 4 kB / 414.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001551/0.2691, allocations: 55.97 kB / 414.8 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005616/0.2697, allocations: 406.2 kB / 415.2 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003299/0.27, allocations: 168 kB / 415.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001445/0.2702, allocations: 86.55 kB / 415.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.011e-05/0.2702, allocations: 7.984 kB / 415.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001653/0.2704, allocations: 79.33 kB / 415.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.894e-06/0.2704, allocations: 0 / 415.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005405/0.271, allocations: 229.4 kB / 415.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/0.2711, allocations: 136.5 kB / 415.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003264/0.2714, allocations: 292.9 kB / 416.2 MB, free: 9.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.856e-05/0.2714, allocations: 29.7 kB / 416.2 MB, free: 9.785 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.099e-05/0.2715, allocations: 120.6 kB / 416.3 MB, free: 9.66 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.122e-05/0.2716, allocations: 31.84 kB / 416.3 MB, free: 9.629 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.57e-05/0.2717, allocations: 49.94 kB / 416.4 MB, free: 9.574 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.2718, allocations: 330.8 kB / 416.7 MB, free: 9.242 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001022/0.2719, allocations: 44.77 kB / 416.7 MB, free: 9.199 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00019/0.2721, allocations: 170.1 kB / 416.9 MB, free: 8.973 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002672/0.2724, allocations: 199.2 kB / 417.1 MB, free: 8.723 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.2724, allocations: 4 kB / 417.1 MB, free: 8.719 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003745/0.2728, allocations: 225.5 kB / 417.3 MB, free: 8.492 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.2728, allocations: 8 kB / 417.3 MB, free: 8.484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.2728, allocations: 7.984 kB / 417.3 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.2729, allocations: 4 kB / 417.3 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.719e-05/0.273, allocations: 23.94 kB / 417.4 MB, free: 8.449 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.968e-05/0.273, allocations: 15.92 kB / 417.4 MB, free: 8.434 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000117/0.2731, allocations: 24.14 kB / 417.4 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.2731, allocations: 8 kB / 417.4 MB, free: 8.402 MB / 334.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.0001854/0.2733, allocations: 172 kB / 417.6 MB, free: 8.227 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002003/0.2735, allocations: 133.4 kB / 417.7 MB, free: 8.09 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.884e-05/0.2736, allocations: 33.69 kB / 417.8 MB, free: 8.055 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.2736, allocations: 0 / 417.8 MB, free: 8.055 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.176e-06/0.2736, allocations: 4 kB / 417.8 MB, free: 8.051 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.2737, allocations: 3.938 kB / 417.8 MB, free: 8.047 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002459/0.2739, allocations: 245.5 kB / 418 MB, free: 7.758 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2739, allocations: 0 / 418 MB, free: 7.758 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.837e-05/0.274, allocations: 7.938 kB / 418 MB, free: 7.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.204e-06/0.274, allocations: 4 kB / 418 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/0.274, allocations: 15.92 kB / 418 MB, free: 7.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.117e-06/0.274, allocations: 4 kB / 418 MB, free: 7.727 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.274, allocations: 0 / 418 MB, free: 7.727 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003622/0.2744, allocations: 229.5 kB / 418.3 MB, free: 7.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.2745, allocations: 120.9 kB / 418.4 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.557e-05/0.2745, allocations: 7.938 kB / 418.4 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.535e-05/0.2746, allocations: 12 kB / 418.4 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.77e-05/0.2747, allocations: 7.984 kB / 418.4 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.267e-05/0.2747, allocations: 8 kB / 418.4 MB, free: 7.309 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00023/0.2749, allocations: 208.4 kB / 418.6 MB, free: 7.105 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2749, allocations: 0 / 418.6 MB, free: 7.105 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003224/0.2753, allocations: 47.92 kB / 418.7 MB, free: 7.059 MB / 334.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.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent) * 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 (22): * Single equations (assignments): 20 * 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.002232/0.2775, allocations: 1.148 MB / 419.8 MB, free: 6.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003356/0.2779, allocations: 136.5 kB / 419.9 MB, free: 5.887 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2779, allocations: 0 / 419.9 MB, free: 5.887 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.026e-05/0.278, allocations: 31.92 kB / 420 MB, free: 5.855 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000517/0.2785, allocations: 110.6 kB / 420.1 MB, free: 5.75 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00295/0.2814, allocations: 2.405 MB / 422.5 MB, free: 3.148 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003765/0.2818, allocations: 0.7635 MB / 423.2 MB, free: 2.359 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.606e-05/0.2819, allocations: 34.27 kB / 423.3 MB, free: 2.324 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001161/0.2821, allocations: 71.34 kB / 423.3 MB, free: 2.254 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2821, allocations: 0 / 423.3 MB, free: 2.254 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02964/0.3117, allocations: 5.613 MB / 429 MB, free: 12.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.231/8.543, allocations: 14.33 kB / 429 MB, free: 12.76 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.6e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv","/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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches