Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.001728/0.001728, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002038/0.002038, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001715/0.001715, allocations: 64.12 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2491/0.2508, allocations: 50.54 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003397/0.2542, allocations: 1.979 MB / 410.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002251/0.2565, allocations: 1.34 MB / 412.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001201/0.2566, allocations: 7.938 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003012/0.257, allocations: 67.59 kB / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003544/0.2573, allocations: 143.4 kB / 412.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007588/0.2581, allocations: 266.7 kB / 412.5 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002799/0.2584, allocations: 219.4 kB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001286/0.2585, allocations: 48.3 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00013/0.2587, allocations: 95.61 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001711/0.2588, allocations: 111.5 kB / 413 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.021e-05/0.2589, allocations: 12 kB / 413 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001779/0.2591, allocations: 71.95 kB / 413.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.873e-05/0.2592, allocations: 71.77 kB / 413.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001116/0.2593, allocations: 99.33 kB / 413.3 MB, free: 13 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004021/0.2597, allocations: 297.7 kB / 413.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.2597, allocations: 0 / 413.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2597, allocations: 0 / 413.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.72e-06/0.2597, allocations: 0 / 413.6 MB, free: 12.71 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.000916/0.2606, allocations: 0.6048 MB / 414.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.391e-05/0.2607, allocations: 11.97 kB / 414.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.466e-05/0.2607, allocations: 54.67 kB / 414.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.613e-05/0.2608, allocations: 32.75 kB / 414.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004526/0.2613, allocations: 311.7 kB / 414.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.234e-05/0.2613, allocations: 12.31 kB / 414.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.17e-05/0.2613, allocations: 19.92 kB / 414.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005879/0.2619, allocations: 319.3 kB / 414.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.262, allocations: 4 kB / 414.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.754e-05/0.262, allocations: 7.938 kB / 414.9 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.262, allocations: 4 kB / 414.9 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001837/0.2622, allocations: 71.89 kB / 415 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005837/0.2628, allocations: 414.3 kB / 415.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004084/0.2632, allocations: 199.9 kB / 415.6 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001624/0.2634, allocations: 86.55 kB / 415.7 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.318e-05/0.2634, allocations: 7.984 kB / 415.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001756/0.2636, allocations: 75.39 kB / 415.8 MB, free: 10.28 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.873e-06/0.2636, allocations: 3.938 kB / 415.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005712/0.2642, allocations: 257.6 kB / 416 MB, free: 10.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001301/0.2643, allocations: 170.2 kB / 416.2 MB, free: 9.812 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004071/0.2647, allocations: 354.9 kB / 416.5 MB, free: 9.457 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.053e-05/0.2648, allocations: 37.7 kB / 416.6 MB, free: 9.414 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001202/0.2649, allocations: 140.6 kB / 416.7 MB, free: 9.273 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.486e-05/0.265, allocations: 23.84 kB / 416.7 MB, free: 9.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.893e-05/0.265, allocations: 53.89 kB / 416.8 MB, free: 9.191 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.2652, allocations: 338.8 kB / 417.1 MB, free: 8.852 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001026/0.2653, allocations: 44.44 kB / 417.1 MB, free: 8.809 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002339/0.2656, allocations: 190.9 kB / 417.3 MB, free: 8.559 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003062/0.2659, allocations: 219.9 kB / 417.5 MB, free: 8.289 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.634e-06/0.2659, allocations: 0 / 417.5 MB, free: 8.289 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004084/0.2663, allocations: 229.6 kB / 417.8 MB, free: 8.059 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.2664, allocations: 18.94 kB / 417.8 MB, free: 8.043 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.2664, allocations: 7.938 kB / 417.8 MB, free: 8.035 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.168e-05/0.2664, allocations: 8 kB / 417.8 MB, free: 8.027 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001609/0.2666, allocations: 43.86 kB / 417.8 MB, free: 7.984 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.507e-06/0.2666, allocations: 4 kB / 417.9 MB, free: 7.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001254/0.2667, allocations: 23.88 kB / 417.9 MB, free: 7.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.049e-05/0.2667, allocations: 12 kB / 417.9 MB, free: 7.945 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.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,sum.y,sum.u[2],sum.u[1],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.0001991/0.2669, allocations: 172.3 kB / 418.1 MB, free: 7.77 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002258/0.2672, allocations: 149.4 kB / 418.2 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.719e-05/0.2673, allocations: 41.81 kB / 418.2 MB, free: 7.574 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.2673, allocations: 11.88 kB / 418.3 MB, free: 7.562 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.2673, allocations: 0 / 418.3 MB, free: 7.562 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.2673, allocations: 3.938 kB / 418.3 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002782/0.2676, allocations: 269.4 kB / 418.5 MB, free: 7.246 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.644e-06/0.2676, allocations: 0 / 418.5 MB, free: 7.246 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001249/0.2677, allocations: 27.98 kB / 418.5 MB, free: 7.219 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.2677, allocations: 0 / 418.5 MB, free: 7.219 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.926e-05/0.2678, allocations: 15.98 kB / 418.6 MB, free: 7.203 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.2678, allocations: 3.938 kB / 418.6 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2678, allocations: 0 / 418.6 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004099/0.2682, allocations: 249.5 kB / 418.8 MB, free: 6.934 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001404/0.2683, allocations: 132.8 kB / 418.9 MB, free: 6.785 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.042e-05/0.2684, allocations: 8 kB / 418.9 MB, free: 6.777 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.558e-05/0.2685, allocations: 11.98 kB / 419 MB, free: 6.766 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.475e-05/0.2685, allocations: 11.94 kB / 419 MB, free: 6.754 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.386e-05/0.2686, allocations: 7.984 kB / 419 MB, free: 6.746 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002642/0.2688, allocations: 257.9 kB / 419.2 MB, free: 6.492 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2688, allocations: 0 / 419.2 MB, free: 6.492 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003136/0.2692, allocations: 44 kB / 419.3 MB, free: 6.449 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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.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.002295/0.2715, allocations: 1.188 MB / 420.5 MB, free: 5.367 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003494/0.2718, allocations: 164.5 kB / 420.6 MB, free: 5.207 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2718, allocations: 0 / 420.6 MB, free: 5.207 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.353e-05/0.2719, allocations: 27.98 kB / 420.6 MB, free: 5.18 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005071/0.2724, allocations: 116.8 kB / 420.8 MB, free: 5.062 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003314/0.2758, allocations: 2.715 MB / 423.5 MB, free: 2.141 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004439/0.2762, allocations: 0.7829 MB / 424.3 MB, free: 1.332 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.619e-05/0.2763, allocations: 34.5 kB / 424.3 MB, free: 1.301 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001317/0.2765, allocations: 83.39 kB / 424.4 MB, free: 1.219 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2765, allocations: 8 kB / 424.4 MB, free: 1.211 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03037/0.3068, allocations: 6.416 MB / 430.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.359/8.666, allocations: 5.625 kB / 430.8 MB, free: 10.93 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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_IntegerSignals_UpSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches