Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.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.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",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.001664/0.001664, allocations: 113.8 kB / 17.06 MB, free: 6.004 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.001821/0.001821, allocations: 189.4 kB / 18 MB, free: 5.086 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.415/1.415, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 39.94 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2622, allocations: 49.45 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.002595/0.2649, allocations: 1.418 MB / 401.7 MB, free: 7.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001834/0.2651, allocations: 31.08 kB / 401.7 MB, free: 7.297 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.068e-05/0.2652, allocations: 0 / 401.7 MB, free: 7.297 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.314e-05/0.2652, allocations: 9.203 kB / 401.7 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.692e-05/0.2653, allocations: 0 / 401.7 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002318/0.2655, allocations: 22.75 kB / 401.7 MB, free: 7.273 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.911e-05/0.2656, allocations: 31.42 kB / 401.7 MB, free: 7.254 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.739e-05/0.2657, allocations: 4.625 kB / 401.8 MB, free: 7.254 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.441e-05/0.2657, allocations: 16.56 kB / 401.8 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.643e-05/0.2658, allocations: 19.31 kB / 401.8 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.583e-05/0.2658, allocations: 2.219 kB / 401.8 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.839e-06/0.2658, allocations: 3.531 kB / 401.8 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.882e-05/0.2658, allocations: 5.219 kB / 401.8 MB, free: 7.223 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.365e-05/0.2659, allocations: 19.05 kB / 401.8 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.455e-05/0.266, allocations: 30.08 kB / 401.8 MB, free: 7.184 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.266, allocations: 0 / 401.8 MB, free: 7.184 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.266, allocations: 1.062 kB / 401.8 MB, free: 7.184 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.266, allocations: 0 / 401.8 MB, free: 7.184 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004484/0.2665, allocations: 353.9 kB / 402.2 MB, free: 6.805 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.2665, allocations: 11.25 kB / 402.2 MB, free: 6.797 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.864e-05/0.2665, allocations: 30.75 kB / 402.2 MB, free: 6.758 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.558e-05/0.2666, allocations: 8.922 kB / 402.2 MB, free: 6.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002263/0.2668, allocations: 180.3 kB / 402.4 MB, free: 6.535 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.99e-05/0.2668, allocations: 384 / 402.4 MB, free: 6.535 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.594e-06/0.2669, allocations: 4.375 kB / 402.4 MB, free: 6.531 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003544/0.2672, allocations: 127.8 kB / 402.5 MB, free: 6.395 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.2672, allocations: 3.938 kB / 402.6 MB, free: 6.391 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.2672, allocations: 11.94 kB / 402.6 MB, free: 6.379 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.2673, allocations: 0 / 402.6 MB, free: 6.379 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001196/0.2674, allocations: 23.97 kB / 402.6 MB, free: 6.355 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001545/0.2675, allocations: 157.7 kB / 402.7 MB, free: 6.152 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001647/0.2677, allocations: 58.53 kB / 402.8 MB, free: 6.086 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.061e-05/0.2678, allocations: 32.92 kB / 402.8 MB, free: 6.051 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.233e-06/0.2678, allocations: 0 / 402.8 MB, free: 6.051 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.586e-05/0.2679, allocations: 34.5 kB / 402.9 MB, free: 6.008 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 9.02e-07/0.2679, allocations: 0 / 402.9 MB, free: 6.008 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002951/0.2682, allocations: 85.55 kB / 402.9 MB, free: 5.918 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.429e-05/0.2682, allocations: 55.41 kB / 403 MB, free: 5.852 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.307e-05/0.2683, allocations: 105.8 kB / 403.1 MB, free: 5.738 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.534e-05/0.2683, allocations: 29.7 kB / 403.1 MB, free: 5.703 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.776e-05/0.2684, allocations: 84.14 kB / 403.2 MB, free: 5.617 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.052e-05/0.2684, allocations: 0 / 403.2 MB, free: 5.617 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.262e-05/0.2685, allocations: 21.7 kB / 403.2 MB, free: 5.59 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.2686, allocations: 318.8 kB / 403.5 MB, free: 5.27 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.234e-05/0.2686, allocations: 0 / 403.5 MB, free: 5.27 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.886e-05/0.2687, allocations: 39.36 kB / 403.6 MB, free: 5.219 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.81e-05/0.2687, allocations: 39.38 kB / 403.6 MB, free: 5.168 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.2687, allocations: 0 / 403.6 MB, free: 5.168 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.58e-05/0.2688, allocations: 61.52 kB / 403.7 MB, free: 5.102 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.2688, allocations: 12.06 kB / 403.7 MB, free: 5.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.2688, allocations: 4 kB / 403.7 MB, free: 5.086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.2689, allocations: 4 kB / 403.7 MB, free: 5.082 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.072e-05/0.2689, allocations: 4 kB / 403.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.625e-06/0.2689, allocations: 4 kB / 403.7 MB, free: 5.074 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.55e-05/0.269, allocations: 4 kB / 403.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.971e-06/0.269, allocations: 4 kB / 403.7 MB, free: 5.066 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($CLKPRE.step.counter,step.counter,step.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 8.682e-05/0.2691, allocations: 109.8 kB / 403.8 MB, free: 4.949 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001708/0.2693, allocations: 77.53 kB / 403.9 MB, free: 4.867 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.554e-05/0.2693, allocations: 7.906 kB / 403.9 MB, free: 4.852 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.2693, allocations: 0 / 403.9 MB, free: 4.852 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.2693, allocations: 4 kB / 403.9 MB, free: 4.848 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.2693, allocations: 0 / 403.9 MB, free: 4.848 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001146/0.2694, allocations: 153.7 kB / 404.1 MB, free: 4.648 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.2694, allocations: 3.984 kB / 404.1 MB, free: 4.645 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.914e-05/0.2695, allocations: 12 kB / 404.1 MB, free: 4.633 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.828e-06/0.2695, allocations: 4.312 kB / 404.1 MB, free: 4.629 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.172e-06/0.2695, allocations: 0 / 404.1 MB, free: 4.629 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.161e-06/0.2695, allocations: 4 kB / 404.1 MB, free: 4.625 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.2695, allocations: 0 / 404.1 MB, free: 4.625 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001897/0.2697, allocations: 101 kB / 404.2 MB, free: 4.508 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.401e-05/0.2698, allocations: 81.11 kB / 404.3 MB, free: 4.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.51e-05/0.2698, allocations: 3.938 kB / 404.3 MB, free: 4.406 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.21e-05/0.2699, allocations: 4 kB / 404.3 MB, free: 4.402 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.732e-06/0.2699, allocations: 0 / 404.3 MB, free: 4.402 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.045e-06/0.2699, allocations: 4.266 kB / 404.3 MB, free: 4.398 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.608e-05/0.2699, allocations: 83.28 kB / 404.4 MB, free: 4.316 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2699, allocations: 4 kB / 404.4 MB, free: 4.312 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001826/0.2701, allocations: 4 kB / 404.4 MB, free: 4.309 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (assignClock1.u,assignClock1.y,step.y,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0005969/0.2707, allocations: 0.663 MB / 405 MB, free: 3.617 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00014/0.2709, allocations: 23.98 kB / 405.1 MB, free: 3.594 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.2709, allocations: 4.312 kB / 405.1 MB, free: 3.59 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.91e-07/0.2709, allocations: 0 / 405.1 MB, free: 3.59 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002842/0.2712, allocations: 39.78 kB / 405.1 MB, free: 3.551 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001044/0.2722, allocations: 1.17 MB / 406.3 MB, free: 2.281 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002949/0.2726, allocations: 0.6961 MB / 407 MB, free: 1.559 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.303e-05/0.2726, allocations: 4 kB / 407 MB, free: 1.555 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.51e-05/0.2726, allocations: 7.438 kB / 407 MB, free: 1.547 MB / 318.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2726, allocations: 0 / 407 MB, free: 1.547 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0221/0.2947, allocations: 1.372 MB / 408.3 MB, free: 324 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.811/8.106, allocations: 4.625 kB / 408.3 MB, free: 320 kB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock1.y Variables in the result:time,periodicClock1.period,assignClock1.u,assignClock1.y,step.counter,step.y