Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.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.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001369/0.001369, allocations: 113.6 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001413/0.001413, allocations: 203.9 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001754/0.001754, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2461, allocations: 50.55 MB / 408.8 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.002534/0.2487, allocations: 1.436 MB / 410.2 MB, free: 196 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001842/0.2489, allocations: 31.84 kB / 410.2 MB, free: 164 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.814e-05/0.249, allocations: 0 / 410.2 MB, free: 164 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.61e-05/0.249, allocations: 0 / 410.2 MB, free: 164 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.307e-05/0.249, allocations: 7.938 kB / 410.2 MB, free: 156 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002209/0.2493, allocations: 19.98 kB / 410.2 MB, free: 136 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.423e-05/0.2494, allocations: 31.91 kB / 410.3 MB, free: 104 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.928e-05/0.2494, allocations: 11.98 kB / 410.3 MB, free: 92 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.379e-05/0.2495, allocations: 11.94 kB / 410.3 MB, free: 80 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.273e-05/0.2495, allocations: 15.92 kB / 410.3 MB, free: 64 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.521e-05/0.2496, allocations: 4 kB / 410.3 MB, free: 60 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.073e-06/0.2496, allocations: 0 / 410.3 MB, free: 60 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.63e-05/0.2496, allocations: 4 kB / 410.3 MB, free: 56 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.214e-05/0.2496, allocations: 23.86 kB / 410.3 MB, free: 32 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.46e-05/0.2497, allocations: 31.83 kB / 410.4 MB, free: 0 / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.2497, allocations: 0 / 410.4 MB, free: 0 / 318.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2497, allocations: 0 / 410.4 MB, free: 0 / 318.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.2497, allocations: 0 / 410.4 MB, free: 0 / 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.000447/0.2502, allocations: 346.4 kB / 410.7 MB, free: 15.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.2502, allocations: 12.03 kB / 410.7 MB, free: 15.6 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.141e-05/0.2503, allocations: 30.75 kB / 410.8 MB, free: 15.56 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.544e-05/0.2503, allocations: 8.875 kB / 410.8 MB, free: 15.55 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002169/0.2505, allocations: 180.3 kB / 410.9 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/0.2505, allocations: 8.312 kB / 411 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.35e-05/0.2506, allocations: 4.375 kB / 411 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003578/0.2509, allocations: 119.8 kB / 411.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.251, allocations: 11.81 kB / 411.1 MB, free: 15.19 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.007e-06/0.251, allocations: 4 kB / 411.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.596e-06/0.251, allocations: 0 / 411.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001137/0.2511, allocations: 23.97 kB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001525/0.2513, allocations: 161.6 kB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000153/0.2514, allocations: 54.55 kB / 411.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.062e-05/0.2515, allocations: 28.92 kB / 411.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.021e-06/0.2515, allocations: 0 / 411.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.503e-05/0.2515, allocations: 38.48 kB / 411.4 MB, free: 14.81 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 7.71e-07/0.2515, allocations: 0 / 411.4 MB, free: 14.81 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002758/0.2518, allocations: 85.59 kB / 411.5 MB, free: 14.72 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.095e-05/0.2519, allocations: 55.41 kB / 411.5 MB, free: 14.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.313e-05/0.252, allocations: 101.9 kB / 411.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.664e-05/0.252, allocations: 25.7 kB / 411.7 MB, free: 14.52 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.643e-05/0.2521, allocations: 92.12 kB / 411.7 MB, free: 14.42 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.127e-05/0.2521, allocations: 0 / 411.7 MB, free: 14.42 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.066e-05/0.2521, allocations: 17.72 kB / 411.8 MB, free: 14.4 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.2522, allocations: 318.8 kB / 412.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.652e-05/0.2523, allocations: 8 kB / 412.1 MB, free: 14.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.339e-05/0.2523, allocations: 27.75 kB / 412.1 MB, free: 14.03 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.887e-05/0.2524, allocations: 39.44 kB / 412.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.2524, allocations: 0 / 412.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.223e-05/0.2525, allocations: 69.52 kB / 412.2 MB, free: 13.9 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.2525, allocations: 11.94 kB / 412.2 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.2525, allocations: 0 / 412.2 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.2525, allocations: 0 / 412.2 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.927e-05/0.2526, allocations: 11.98 kB / 412.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.2526, allocations: 0 / 412.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.023e-05/0.2526, allocations: 4 kB / 412.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.36e-06/0.2526, allocations: 4.125 kB / 412.2 MB, free: 13.87 MB / 334.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.613e-05/0.2527, allocations: 121.7 kB / 412.4 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001533/0.2529, allocations: 73.56 kB / 412.4 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.495e-05/0.2529, allocations: 4.141 kB / 412.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-06/0.2529, allocations: 0 / 412.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.2529, allocations: 3.984 kB / 412.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.2529, allocations: 7.922 kB / 412.5 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001076/0.253, allocations: 153.7 kB / 412.6 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.2531, allocations: 0 / 412.6 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.856e-05/0.2531, allocations: 15.98 kB / 412.6 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.2531, allocations: 3.938 kB / 412.6 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.2531, allocations: 4 kB / 412.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.2531, allocations: 0 / 412.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.2531, allocations: 0 / 412.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000177/0.2533, allocations: 89.05 kB / 412.7 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.538e-05/0.2534, allocations: 85.05 kB / 412.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.856e-05/0.2534, allocations: 11.94 kB / 412.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.055e-05/0.2534, allocations: 4 kB / 412.8 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.482e-06/0.2535, allocations: 0 / 412.8 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.632e-06/0.2535, allocations: 4 kB / 412.8 MB, free: 13.19 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.984e-05/0.2535, allocations: 87.27 kB / 412.9 MB, free: 13.1 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2535, allocations: 0 / 412.9 MB, free: 13.1 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001864/0.2537, allocations: 4 kB / 412.9 MB, free: 13.1 MB / 334.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.0005612/0.2543, allocations: 0.6477 MB / 413.5 MB, free: 12.42 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001345/0.2544, allocations: 31.97 kB / 413.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2544, allocations: 0 / 413.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.91e-07/0.2544, allocations: 0 / 413.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000268/0.2547, allocations: 35.5 kB / 413.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001014/0.2557, allocations: 1.178 MB / 414.8 MB, free: 11.08 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002818/0.256, allocations: 0.6807 MB / 415.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.78e-05/0.2561, allocations: 0 / 415.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.657e-05/0.2561, allocations: 19.42 kB / 415.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2561, allocations: 0 / 415.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02229/0.2784, allocations: 1.362 MB / 416.9 MB, free: 9.129 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.925/8.204, allocations: 3.859 kB / 416.9 MB, free: 9.125 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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