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.001587/0.001587, allocations: 109.2 kB / 17.06 MB, free: 6.016 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.001746/0.001746, allocations: 192 kB / 18 MB, free: 5.102 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.485/1.485, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 51.92 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.255/0.2565, allocations: 49.44 MB / 400.3 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep): time 0.002666/0.2592, allocations: 1.441 MB / 401.7 MB, free: 7.277 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001829/0.2594, allocations: 29.59 kB / 401.7 MB, free: 7.254 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.295e-05/0.2595, allocations: 1.094 kB / 401.7 MB, free: 7.254 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.755e-05/0.2595, allocations: 7.938 kB / 401.7 MB, free: 7.246 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.978e-05/0.2596, allocations: 5.031 kB / 401.7 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002683/0.2598, allocations: 26.34 kB / 401.8 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.66e-05/0.2599, allocations: 26.7 kB / 401.8 MB, free: 7.211 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.26, allocations: 13.3 kB / 401.8 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.318e-05/0.2601, allocations: 16.14 kB / 401.8 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.625e-05/0.2601, allocations: 11.17 kB / 401.8 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.847e-05/0.2602, allocations: 2.188 kB / 401.8 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.069e-05/0.2602, allocations: 3.062 kB / 401.8 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.007e-05/0.2602, allocations: 13.09 kB / 401.8 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.784e-05/0.2602, allocations: 15.48 kB / 401.9 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001033/0.2604, allocations: 30.23 kB / 401.9 MB, free: 7.137 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2604, allocations: 0 / 401.9 MB, free: 7.137 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2604, allocations: 1.188 kB / 401.9 MB, free: 7.137 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.2604, allocations: 0 / 401.9 MB, free: 7.137 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.000454/0.2608, allocations: 346 kB / 402.2 MB, free: 6.758 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.2609, allocations: 12.03 kB / 402.2 MB, free: 6.746 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.292e-05/0.2609, allocations: 38.69 kB / 402.3 MB, free: 6.699 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.062e-05/0.261, allocations: 4.938 kB / 402.3 MB, free: 6.695 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002286/0.2612, allocations: 196.1 kB / 402.5 MB, free: 6.465 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.477e-05/0.2612, allocations: 384 / 402.5 MB, free: 6.465 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.37e-05/0.2612, allocations: 4.375 kB / 402.5 MB, free: 6.461 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003424/0.2616, allocations: 119.8 kB / 402.6 MB, free: 6.332 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.2616, allocations: 11.92 kB / 402.6 MB, free: 6.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.244e-06/0.2616, allocations: 0 / 402.6 MB, free: 6.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.2616, allocations: 4 kB / 402.6 MB, free: 6.316 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001179/0.2618, allocations: 27.97 kB / 402.6 MB, free: 6.289 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001493/0.2619, allocations: 149.7 kB / 402.8 MB, free: 6.094 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001684/0.2621, allocations: 58.48 kB / 402.8 MB, free: 6.027 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.767e-05/0.2622, allocations: 28.92 kB / 402.9 MB, free: 5.996 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.057e-05/0.2622, allocations: 3.984 kB / 402.9 MB, free: 5.992 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.393e-05/0.2622, allocations: 34.56 kB / 402.9 MB, free: 5.949 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.2622, allocations: 0 / 402.9 MB, free: 5.949 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002792/0.2625, allocations: 89.48 kB / 403 MB, free: 5.855 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.238e-05/0.2626, allocations: 55.41 kB / 403.1 MB, free: 5.789 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.341e-05/0.2627, allocations: 105.8 kB / 403.2 MB, free: 5.676 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.388e-05/0.2627, allocations: 25.7 kB / 403.2 MB, free: 5.645 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.244e-05/0.2627, allocations: 84.14 kB / 403.3 MB, free: 5.559 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.335e-05/0.2628, allocations: 4 kB / 403.3 MB, free: 5.555 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.049e-05/0.2628, allocations: 17.72 kB / 403.3 MB, free: 5.531 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.2629, allocations: 318.8 kB / 403.6 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.409e-05/0.2629, allocations: 4 kB / 403.6 MB, free: 5.207 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.255e-05/0.263, allocations: 27.44 kB / 403.6 MB, free: 5.168 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.022e-05/0.263, allocations: 39.38 kB / 403.7 MB, free: 5.117 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.263, allocations: 0 / 403.7 MB, free: 5.117 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001055/0.2631, allocations: 61.62 kB / 403.7 MB, free: 5.051 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.2632, allocations: 7.938 kB / 403.7 MB, free: 5.043 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.2632, allocations: 4 kB / 403.7 MB, free: 5.039 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.2632, allocations: 0 / 403.7 MB, free: 5.039 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.362e-05/0.2633, allocations: 15.92 kB / 403.8 MB, free: 5.023 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.2633, allocations: 4.125 kB / 403.8 MB, free: 5.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.281e-05/0.2633, allocations: 11.89 kB / 403.8 MB, free: 5.008 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.697e-06/0.2633, allocations: 0 / 403.8 MB, free: 5.008 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 8.271e-05/0.2634, allocations: 113.8 kB / 403.9 MB, free: 4.887 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001559/0.2636, allocations: 61.61 kB / 403.9 MB, free: 4.82 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.023e-05/0.2636, allocations: 11.91 kB / 403.9 MB, free: 4.801 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.2636, allocations: 3.938 kB / 404 MB, free: 4.797 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2636, allocations: 384 / 404 MB, free: 4.797 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.2636, allocations: 3.984 kB / 404 MB, free: 4.793 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001109/0.2637, allocations: 165.6 kB / 404.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.2638, allocations: 0 / 404.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.829e-05/0.2638, allocations: 11.98 kB / 404.1 MB, free: 4.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.2638, allocations: 3.938 kB / 404.1 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-06/0.2638, allocations: 0 / 404.1 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.2638, allocations: 4 kB / 404.1 MB, free: 4.562 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2639, allocations: 0 / 404.1 MB, free: 4.562 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001855/0.264, allocations: 93.28 kB / 404.2 MB, free: 4.453 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.602e-05/0.2641, allocations: 81.09 kB / 404.3 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.739e-05/0.2641, allocations: 7.938 kB / 404.3 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.368e-05/0.2642, allocations: 4 kB / 404.3 MB, free: 4.344 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.843e-06/0.2642, allocations: 0 / 404.3 MB, free: 4.344 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.549e-06/0.2642, allocations: 0 / 404.3 MB, free: 4.344 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.002e-05/0.2642, allocations: 91.27 kB / 404.4 MB, free: 4.254 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2642, allocations: 3.938 kB / 404.4 MB, free: 4.25 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001832/0.2644, allocations: 4 kB / 404.4 MB, free: 4.246 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.0005708/0.265, allocations: 0.6514 MB / 405.1 MB, free: 3.566 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001406/0.2652, allocations: 35.91 kB / 405.1 MB, free: 3.531 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2652, allocations: 0 / 405.1 MB, free: 3.531 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.51e-07/0.2652, 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.0002689/0.2654, allocations: 28 kB / 405.1 MB, free: 3.504 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000997/0.2665, allocations: 1.189 MB / 406.3 MB, free: 2.219 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002792/0.2667, allocations: 0.6844 MB / 407 MB, free: 1.508 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.948e-05/0.2668, allocations: 0 / 407 MB, free: 1.508 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.133e-05/0.2668, allocations: 19.42 kB / 407 MB, free: 1.488 MB / 318.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2668, allocations: 4 kB / 407 MB, free: 1.484 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02177/0.2886, allocations: 1.359 MB / 408.4 MB, free: 240 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.758/8.046, allocations: 11.16 kB / 408.4 MB, free: 236 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