Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001514/0.001513, allocations: 108.5 kB / 17.05 MB, free: 6.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001693/0.001693, allocations: 192 kB / 17.99 MB, free: 5.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001031/0.001031, allocations: 51.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.2466, allocations: 49.43 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003662/0.2504, allocations: 1.968 MB / 402.2 MB, free: 6.871 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001961/0.2523, allocations: 1.192 MB / 403.4 MB, free: 5.672 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001783/0.2525, allocations: 11.94 kB / 403.4 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003703/0.253, allocations: 67.61 kB / 403.5 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003626/0.2533, allocations: 95.58 kB / 403.5 MB, free: 5.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009747/0.2543, allocations: 299.1 kB / 403.8 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003278/0.2547, allocations: 223.4 kB / 404.1 MB, free: 4.992 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001464/0.2548, allocations: 33.67 kB / 404.1 MB, free: 4.957 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001502/0.255, allocations: 91.62 kB / 404.2 MB, free: 4.867 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001705/0.2552, allocations: 111.6 kB / 404.3 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.451e-05/0.2552, allocations: 16 kB / 404.3 MB, free: 4.742 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001825/0.2554, allocations: 71.89 kB / 404.4 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.45e-05/0.2555, allocations: 71.75 kB / 404.4 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000102/0.2556, allocations: 95.34 kB / 404.5 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000432/0.256, allocations: 293.7 kB / 404.8 MB, free: 4.223 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.256, allocations: 0 / 404.8 MB, free: 4.223 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2561, allocations: 0 / 404.8 MB, free: 4.223 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.326e-06/0.2561, allocations: 0 / 404.8 MB, free: 4.223 MB / 318.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.0009562/0.257, allocations: 0.597 MB / 405.4 MB, free: 3.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.2571, allocations: 8.031 kB / 405.4 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.717e-05/0.2571, allocations: 46.73 kB / 405.5 MB, free: 3.508 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.522e-05/0.2572, allocations: 32.75 kB / 405.5 MB, free: 3.477 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004123/0.2576, allocations: 311.7 kB / 405.8 MB, free: 3.137 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.799e-05/0.2577, allocations: 8.375 kB / 405.8 MB, free: 3.129 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.714e-05/0.2577, allocations: 23.88 kB / 405.8 MB, free: 3.105 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005659/0.2583, allocations: 327.8 kB / 406.2 MB, free: 2.758 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.2583, allocations: 3.984 kB / 406.2 MB, free: 2.754 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.645e-05/0.2583, allocations: 0 / 406.2 MB, free: 2.754 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.715e-06/0.2583, allocations: 4 kB / 406.2 MB, free: 2.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001739/0.2585, allocations: 67.95 kB / 406.2 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000566/0.2591, allocations: 422.2 kB / 406.6 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003577/0.2595, allocations: 192 kB / 406.8 MB, free: 2 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001572/0.2596, allocations: 98.53 kB / 406.9 MB, free: 1.895 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.218e-05/0.2597, allocations: 7.938 kB / 406.9 MB, free: 1.887 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001617/0.2598, allocations: 75.38 kB / 407 MB, free: 1.801 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 3.967e-06/0.2599, allocations: 0 / 407 MB, free: 1.801 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.000541/0.2604, allocations: 257.5 kB / 407.3 MB, free: 1.543 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.024e-05/0.2605, allocations: 174.2 kB / 407.4 MB, free: 1.336 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003201/0.2608, allocations: 350.9 kB / 407.8 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.404e-05/0.2609, allocations: 29.7 kB / 407.8 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.362e-05/0.261, allocations: 132.6 kB / 407.9 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.347e-05/0.261, allocations: 27.84 kB / 408 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.797e-05/0.2611, allocations: 57.88 kB / 408 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.2612, allocations: 338.8 kB / 408.3 MB, free: 388 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.255e-05/0.2613, allocations: 44.45 kB / 408.4 MB, free: 344 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001639/0.2615, allocations: 187.6 kB / 408.6 MB, free: 92 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002641/0.2617, allocations: 207.2 kB / 408.8 MB, free: 15.83 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.2618, allocations: 4 kB / 408.8 MB, free: 15.83 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003761/0.2621, allocations: 241.1 kB / 409 MB, free: 15.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.2622, allocations: 6.656 kB / 409 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.2622, allocations: 4 kB / 409 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.2622, allocations: 8.375 kB / 409 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001502/0.2624, allocations: 39.86 kB / 409.1 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.197e-05/0.2624, allocations: 11.94 kB / 409.1 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001248/0.2625, allocations: 24.66 kB / 409.1 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.657e-05/0.2625, allocations: 19.94 kB / 409.1 MB, free: 15.48 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.0001576/0.2627, allocations: 176 kB / 409.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002003/0.2629, allocations: 141.4 kB / 409.4 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.847e-05/0.263, allocations: 33.73 kB / 409.5 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.154e-05/0.263, allocations: 7.938 kB / 409.5 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.263, allocations: 0 / 409.5 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.263, allocations: 0 / 409.5 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002065/0.2632, allocations: 265.5 kB / 409.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.2632, allocations: 4.047 kB / 409.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001314/0.2634, allocations: 31.91 kB / 409.8 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.241e-06/0.2634, allocations: 4 kB / 409.8 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.593e-05/0.2634, allocations: 4 kB / 409.8 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.751e-06/0.2634, allocations: 11.92 kB / 409.8 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2634, allocations: 3.938 kB / 409.8 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003725/0.2638, allocations: 252.2 kB / 410 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001203/0.2639, allocations: 128.8 kB / 410.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.053e-05/0.264, allocations: 4 kB / 410.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.87e-05/0.2641, allocations: 8 kB / 410.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.157e-05/0.2641, allocations: 11.92 kB / 410.2 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.257e-05/0.2642, allocations: 12 kB / 410.2 MB, free: 14.3 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002265/0.2644, allocations: 249.9 kB / 410.5 MB, free: 14.05 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2644, allocations: 0 / 410.5 MB, free: 14.05 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003135/0.2647, allocations: 51.92 kB / 410.5 MB, free: 14 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.001601/0.2663, allocations: 1.187 MB / 411.7 MB, free: 12.94 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003189/0.2667, allocations: 155.7 kB / 411.8 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2667, allocations: 4 kB / 411.8 MB, free: 12.78 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.275e-05/0.2668, allocations: 31.92 kB / 411.9 MB, free: 12.75 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005054/0.2673, allocations: 125.2 kB / 412 MB, free: 12.63 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002827/0.2701, allocations: 2.703 MB / 414.7 MB, free: 9.723 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000289/0.2704, allocations: 0.7636 MB / 415.5 MB, free: 8.934 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001039/0.2705, allocations: 34.28 kB / 415.5 MB, free: 8.898 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001216/0.2707, allocations: 75.41 kB / 415.6 MB, free: 8.824 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2707, allocations: 0 / 415.6 MB, free: 8.824 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02388/0.2946, allocations: 6.332 MB / 421.9 MB, free: 2.637 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.883/8.177, allocations: 8.625 kB / 421.9 MB, free: 2.629 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches