Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.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.RealSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_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.001551/0.001551, allocations: 110.2 kB / 17.06 MB, free: 5.785 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.001543/0.001543, allocations: 191 kB / 18 MB, free: 4.945 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.397/1.397, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 47.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2432/0.2446, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep): time 0.002767/0.2475, allocations: 1.456 MB / 401.7 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001985/0.2477, allocations: 29.88 kB / 401.7 MB, free: 7.258 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.509e-05/0.2478, allocations: 1.094 kB / 401.7 MB, free: 7.258 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.071e-05/0.2478, allocations: 7.875 kB / 401.7 MB, free: 7.25 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.848e-05/0.2479, allocations: 5.125 kB / 401.7 MB, free: 7.246 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000256/0.2481, allocations: 21.11 kB / 401.8 MB, free: 7.234 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.979e-05/0.2482, allocations: 31.16 kB / 401.8 MB, free: 7.215 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.2484, allocations: 8.625 kB / 401.8 MB, free: 7.211 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.778e-05/0.2484, allocations: 16.48 kB / 401.8 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.43e-05/0.2485, allocations: 15.45 kB / 401.8 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.939e-05/0.2485, allocations: 2.156 kB / 401.8 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.044e-05/0.2485, allocations: 3.25 kB / 401.8 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.634e-05/0.2485, allocations: 9 kB / 401.8 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.365e-05/0.2486, allocations: 11 kB / 401.9 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001098/0.2487, allocations: 34.62 kB / 401.9 MB, free: 7.145 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2487, allocations: 0 / 401.9 MB, free: 7.145 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.2487, allocations: 1.219 kB / 401.9 MB, free: 7.145 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.2487, allocations: 0 / 401.9 MB, free: 7.145 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.0004413/0.2492, allocations: 349.2 kB / 402.2 MB, free: 6.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.2492, allocations: 12.06 kB / 402.2 MB, free: 6.758 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.773e-05/0.2493, allocations: 30.75 kB / 402.3 MB, free: 6.719 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.647e-05/0.2493, allocations: 4.938 kB / 402.3 MB, free: 6.715 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002168/0.2495, allocations: 188.1 kB / 402.5 MB, free: 6.492 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.232e-05/0.2496, allocations: 4.375 kB / 402.5 MB, free: 6.488 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.204e-05/0.2496, allocations: 4.375 kB / 402.5 MB, free: 6.484 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003328/0.2499, allocations: 127.8 kB / 402.6 MB, free: 6.348 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.475e-06/0.2499, allocations: 3.938 kB / 402.6 MB, free: 6.344 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.635e-06/0.2499, allocations: 0 / 402.6 MB, free: 6.344 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.25, allocations: 3.984 kB / 402.6 MB, free: 6.34 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001169/0.2501, allocations: 23.98 kB / 402.6 MB, free: 6.316 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001227/0.2502, allocations: 161.7 kB / 402.8 MB, free: 6.109 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001569/0.2504, allocations: 58.48 kB / 402.8 MB, free: 6.043 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.817e-05/0.2505, allocations: 24.92 kB / 402.9 MB, free: 6.016 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.019e-05/0.2505, allocations: 0 / 402.9 MB, free: 6.016 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.365e-05/0.2505, allocations: 34.56 kB / 402.9 MB, free: 5.973 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 9.22e-07/0.2505, allocations: 0 / 402.9 MB, free: 5.973 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002778/0.2508, allocations: 93.48 kB / 403 MB, free: 5.875 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.741e-05/0.2509, allocations: 55.41 kB / 403 MB, free: 5.809 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.789e-05/0.2509, allocations: 105.8 kB / 403.2 MB, free: 5.695 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.702e-05/0.251, allocations: 25.7 kB / 403.2 MB, free: 5.664 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.352e-05/0.251, allocations: 84.14 kB / 403.3 MB, free: 5.578 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.441e-05/0.251, allocations: 3.984 kB / 403.3 MB, free: 5.574 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.091e-05/0.2511, allocations: 17.72 kB / 403.3 MB, free: 5.551 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.613e-05/0.2511, allocations: 314.8 kB / 403.6 MB, free: 5.234 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.231e-05/0.2512, allocations: 4 kB / 403.6 MB, free: 5.23 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.652e-05/0.2512, allocations: 35.36 kB / 403.6 MB, free: 5.184 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.797e-05/0.2512, allocations: 35.38 kB / 403.7 MB, free: 5.137 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.2512, allocations: 8 kB / 403.7 MB, free: 5.129 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 7.985e-05/0.2513, allocations: 57.62 kB / 403.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.2514, allocations: 11.94 kB / 403.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.2514, allocations: 0 / 403.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.2514, allocations: 0 / 403.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.637e-05/0.2514, allocations: 11.94 kB / 403.7 MB, free: 5.043 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.2515, allocations: 384 / 403.7 MB, free: 5.043 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.217e-05/0.2515, allocations: 11.89 kB / 403.8 MB, free: 5.031 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.747e-06/0.2515, allocations: 4.125 kB / 403.8 MB, free: 5.027 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: 2 ($CLKPRE.step.counter,step.counter) * 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 6.966e-05/0.2516, allocations: 121.8 kB / 403.9 MB, free: 4.898 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001463/0.2517, allocations: 65.61 kB / 403.9 MB, free: 4.828 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.792e-05/0.2518, allocations: 7.906 kB / 404 MB, free: 4.812 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.2518, allocations: 0 / 404 MB, free: 4.812 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.2518, allocations: 0 / 404 MB, free: 4.812 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.2518, allocations: 3.938 kB / 404 MB, free: 4.809 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.43e-05/0.2519, allocations: 157.7 kB / 404.1 MB, free: 4.605 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.2519, allocations: 0 / 404.1 MB, free: 4.605 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.745e-05/0.2519, allocations: 8 kB / 404.1 MB, free: 4.598 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/0.252, allocations: 7.938 kB / 404.1 MB, free: 4.59 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.676e-06/0.252, allocations: 4 kB / 404.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.252, allocations: 0 / 404.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.252, allocations: 3.984 kB / 404.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001717/0.2522, allocations: 89.3 kB / 404.2 MB, free: 4.477 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.489e-05/0.2522, allocations: 81.14 kB / 404.3 MB, free: 4.379 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.197e-05/0.2522, allocations: 11.94 kB / 404.3 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.46e-05/0.2523, allocations: 7.984 kB / 404.3 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.505e-06/0.2523, allocations: 0 / 404.3 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.991e-06/0.2523, allocations: 4 kB / 404.3 MB, free: 4.355 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.669e-05/0.2523, allocations: 79.28 kB / 404.4 MB, free: 4.277 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2523, allocations: 0 / 404.4 MB, free: 4.277 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001927/0.2525, allocations: 8 kB / 404.4 MB, free: 4.27 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: 1 (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.0005551/0.2531, allocations: 0.6552 MB / 405.1 MB, free: 3.586 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001399/0.2533, allocations: 31.92 kB / 405.1 MB, free: 3.555 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.2533, allocations: 4 kB / 405.1 MB, free: 3.551 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.41e-07/0.2533, allocations: 0 / 405.1 MB, free: 3.551 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002934/0.2536, allocations: 28 kB / 405.1 MB, free: 3.523 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009241/0.2545, allocations: 1.185 MB / 406.3 MB, free: 2.238 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002303/0.2547, allocations: 0.6844 MB / 407 MB, free: 1.527 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.384e-05/0.2548, allocations: 0 / 407 MB, free: 1.527 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.071e-05/0.2548, allocations: 15.44 kB / 407 MB, free: 1.512 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2548, allocations: 0 / 407 MB, free: 1.512 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01724/0.2721, allocations: 1.374 MB / 408.4 MB, free: 260 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.456/7.728, allocations: 8.062 kB / 408.4 MB, free: 256 kB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.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_RealSignals_TickBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock1.y Variables in the result:time,assignClock1.u,assignClock1.y,step.y,periodicClock1.period,step.height