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.001135/0.001134, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.001291/0.001291, allocations: 195 kB / 18 MB, free: 5.074 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.433/1.433, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 55.86 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3403/0.3416, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep): time 0.003726/0.3454, allocations: 1.463 MB / 401.7 MB, free: 7.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002297/0.3456, allocations: 34.25 kB / 401.7 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.516e-05/0.3457, allocations: 1.125 kB / 401.7 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.163e-05/0.3458, allocations: 0 / 401.7 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.553e-05/0.3458, allocations: 5.031 kB / 401.7 MB, free: 7.238 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002681/0.3461, allocations: 18.72 kB / 401.8 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001604/0.3463, allocations: 31.8 kB / 401.8 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001092/0.3464, allocations: 16.52 kB / 401.8 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.132e-05/0.3464, allocations: 7.594 kB / 401.8 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.472e-05/0.3465, allocations: 20.44 kB / 401.8 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.003e-05/0.3465, allocations: 2.219 kB / 401.8 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.036e-05/0.3466, allocations: 2.25 kB / 401.8 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.38e-05/0.3466, allocations: 9.188 kB / 401.8 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.078e-05/0.3466, allocations: 11.41 kB / 401.9 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001168/0.3467, allocations: 34.66 kB / 401.9 MB, free: 7.133 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.3468, allocations: 0 / 401.9 MB, free: 7.133 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.3468, allocations: 1.125 kB / 401.9 MB, free: 7.133 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.3468, allocations: 4 kB / 401.9 MB, free: 7.129 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.0005276/0.3473, allocations: 356.4 kB / 402.2 MB, free: 6.742 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.3474, allocations: 8.031 kB / 402.3 MB, free: 6.734 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.53e-05/0.3474, allocations: 30.75 kB / 402.3 MB, free: 6.695 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.831e-05/0.3474, allocations: 4.938 kB / 402.3 MB, free: 6.691 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002748/0.3477, allocations: 180.3 kB / 402.5 MB, free: 6.477 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.034e-05/0.3477, allocations: 4.375 kB / 402.5 MB, free: 6.473 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.258e-05/0.3478, allocations: 384 / 402.5 MB, free: 6.473 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003699/0.3481, allocations: 123.8 kB / 402.6 MB, free: 6.34 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.3482, allocations: 7.875 kB / 402.6 MB, free: 6.332 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.308e-06/0.3482, allocations: 0 / 402.6 MB, free: 6.332 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.317e-05/0.3482, allocations: 0 / 402.6 MB, free: 6.332 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001756/0.3484, allocations: 27.97 kB / 402.6 MB, free: 6.305 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001712/0.3486, allocations: 153.7 kB / 402.8 MB, free: 6.105 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001626/0.3487, allocations: 58.55 kB / 402.8 MB, free: 6.039 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.247e-05/0.3488, allocations: 32.84 kB / 402.9 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.458e-06/0.3488, allocations: 0 / 402.9 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.718e-05/0.3489, allocations: 42.5 kB / 402.9 MB, free: 5.953 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 8.92e-07/0.3489, allocations: 0 / 402.9 MB, free: 5.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003113/0.3492, allocations: 81.55 kB / 403 MB, free: 5.867 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.423e-05/0.3493, allocations: 59.39 kB / 403 MB, free: 5.797 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001498/0.3494, allocations: 105.9 kB / 403.1 MB, free: 5.684 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.3494, allocations: 25.7 kB / 403.2 MB, free: 5.652 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.664e-05/0.3495, allocations: 88.12 kB / 403.3 MB, free: 5.562 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.549e-05/0.3495, allocations: 0 / 403.3 MB, free: 5.562 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.697e-05/0.3496, allocations: 17.72 kB / 403.3 MB, free: 5.539 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.3497, allocations: 318.8 kB / 403.6 MB, free: 5.219 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.867e-05/0.3497, allocations: 7.984 kB / 403.6 MB, free: 5.211 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.64e-05/0.3498, allocations: 35.75 kB / 403.6 MB, free: 5.164 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.751e-05/0.3498, allocations: 31.44 kB / 403.7 MB, free: 5.121 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.3498, allocations: 0 / 403.7 MB, free: 5.121 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.765e-05/0.3499, allocations: 69.62 kB / 403.7 MB, free: 5.047 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.35, allocations: 11.94 kB / 403.7 MB, free: 5.035 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.35, allocations: 0 / 403.7 MB, free: 5.035 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.35, allocations: 0 / 403.7 MB, free: 5.035 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.635e-05/0.3501, allocations: 8 kB / 403.7 MB, free: 5.027 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.3501, allocations: 7.984 kB / 403.8 MB, free: 5.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.282e-05/0.3501, allocations: 3.953 kB / 403.8 MB, free: 5.016 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.583e-06/0.3501, allocations: 4 kB / 403.8 MB, free: 5.012 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 9.159e-05/0.3502, allocations: 113.8 kB / 403.9 MB, free: 4.891 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001769/0.3504, allocations: 69.67 kB / 403.9 MB, free: 4.816 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.9e-05/0.3505, allocations: 7.906 kB / 403.9 MB, free: 4.801 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.654e-06/0.3505, allocations: 0 / 403.9 MB, free: 4.801 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.3505, allocations: 0 / 403.9 MB, free: 4.801 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.3505, allocations: 0 / 403.9 MB, free: 4.801 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001068/0.3506, allocations: 157.7 kB / 404.1 MB, free: 4.598 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.3506, allocations: 4 kB / 404.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.444e-05/0.3507, allocations: 4 kB / 404.1 MB, free: 4.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.082e-06/0.3507, allocations: 11.92 kB / 404.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.146e-06/0.3507, allocations: 0 / 404.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.3507, allocations: 0 / 404.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3507, allocations: 4 kB / 404.1 MB, free: 4.574 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001803/0.3509, allocations: 93 kB / 404.2 MB, free: 4.465 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.441e-05/0.3509, allocations: 77.11 kB / 404.3 MB, free: 4.371 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.039e-05/0.351, allocations: 11.94 kB / 404.3 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.171e-05/0.351, allocations: 3.984 kB / 404.3 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.297e-06/0.351, allocations: 4 kB / 404.3 MB, free: 4.352 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.201e-06/0.351, allocations: 3.938 kB / 404.3 MB, free: 4.348 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.375e-05/0.3511, allocations: 87.22 kB / 404.4 MB, free: 4.262 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3511, allocations: 0 / 404.4 MB, free: 4.262 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001961/0.3513, allocations: 8 kB / 404.4 MB, free: 4.254 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.0006026/0.3519, allocations: 0.6557 MB / 405.1 MB, free: 3.57 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001437/0.352, allocations: 40.22 kB / 405.1 MB, free: 3.531 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3521, allocations: 0 / 405.1 MB, free: 3.531 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.132e-06/0.3521, allocations: 0 / 405.1 MB, free: 3.531 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003444/0.3524, allocations: 35 kB / 405.1 MB, free: 3.5 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/0.3535, allocations: 1.17 MB / 406.3 MB, free: 2.23 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002231/0.3537, allocations: 0.6864 MB / 407 MB, free: 1.52 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.404e-05/0.3537, allocations: 0 / 407 MB, free: 1.52 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.018e-05/0.3538, allocations: 19.42 kB / 407 MB, free: 1.5 MB / 318.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3538, allocations: 0 / 407 MB, free: 1.5 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01703/0.3708, allocations: 1.382 MB / 408.4 MB, free: 244 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.705/8.076, allocations: 0.625 kB / 408.4 MB, free: 244 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