Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.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.RealSignals.TimeBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001779/0.001779, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002095/0.002095, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 55.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2507/0.252, allocations: 50.54 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep): time 0.003004/0.255, allocations: 1.483 MB / 410.2 MB, free: 60 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000364/0.2554, allocations: 99.69 kB / 410.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.648e-05/0.2555, allocations: 0 / 410.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.112e-05/0.2556, allocations: 3.938 kB / 410.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.324e-05/0.2556, allocations: 3.938 kB / 410.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002647/0.2559, allocations: 19.97 kB / 410.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.402e-05/0.256, allocations: 31.86 kB / 410.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.557e-05/0.2561, allocations: 8 kB / 410.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.199e-05/0.2561, allocations: 11.98 kB / 410.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.925e-05/0.2562, allocations: 3.938 kB / 410.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.938e-05/0.2562, allocations: 8 kB / 410.4 MB, free: 15.87 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.021e-05/0.2562, allocations: 4 kB / 410.4 MB, free: 15.87 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.967e-05/0.2562, allocations: 11.92 kB / 410.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.997e-05/0.2563, allocations: 15.92 kB / 410.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.297e-05/0.2564, allocations: 19.91 kB / 410.5 MB, free: 15.82 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2564, allocations: 3.938 kB / 410.5 MB, free: 15.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2564, allocations: 0 / 410.5 MB, free: 15.82 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.2564, allocations: 4 kB / 410.5 MB, free: 15.81 MB / 334.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.0004865/0.2569, allocations: 338.4 kB / 410.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.04e-05/0.257, allocations: 16.02 kB / 410.8 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.484e-05/0.257, allocations: 34.75 kB / 410.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.251e-05/0.2571, allocations: 4.891 kB / 410.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002868/0.2574, allocations: 176.3 kB / 411 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.2574, allocations: 4.375 kB / 411 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.488e-06/0.2574, allocations: 4.312 kB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003571/0.2578, allocations: 115.8 kB / 411.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.2578, allocations: 3.938 kB / 411.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.338e-06/0.2578, allocations: 0 / 411.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.2578, allocations: 4 kB / 411.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.785e-05/0.2579, allocations: 23.91 kB / 411.2 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001609/0.2581, allocations: 157.6 kB / 411.3 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001717/0.2583, allocations: 58.55 kB / 411.4 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.346e-05/0.2583, allocations: 24.92 kB / 411.4 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.746e-05/0.2584, allocations: 0 / 411.4 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.208e-05/0.2584, allocations: 34.5 kB / 411.5 MB, free: 14.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.2584, allocations: 0 / 411.5 MB, free: 14.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002425/0.2587, allocations: 73.55 kB / 411.5 MB, free: 14.58 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.288e-05/0.2587, allocations: 59.41 kB / 411.6 MB, free: 14.51 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.325e-05/0.2588, allocations: 105.8 kB / 411.7 MB, free: 14.39 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.165e-05/0.2588, allocations: 29.7 kB / 411.7 MB, free: 14.36 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.139e-05/0.2589, allocations: 84.14 kB / 411.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.606e-06/0.2589, allocations: 0 / 411.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.423e-05/0.2589, allocations: 17.72 kB / 411.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.259, allocations: 314.8 kB / 412.1 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.423e-05/0.2591, allocations: 4 kB / 412.1 MB, free: 13.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.582e-05/0.2591, allocations: 31.44 kB / 412.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.864e-05/0.2591, allocations: 31.38 kB / 412.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.2591, allocations: 4 kB / 412.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.519e-05/0.2592, allocations: 61.52 kB / 412.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.2593, allocations: 11.94 kB / 412.3 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.2593, allocations: 0 / 412.3 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.2593, allocations: 0 / 412.3 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.804e-05/0.2594, allocations: 11.98 kB / 412.3 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.2594, allocations: 3.984 kB / 412.3 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.295e-05/0.2594, allocations: 4 kB / 412.3 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.998e-06/0.2594, allocations: 0 / 412.3 MB, free: 13.74 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 8.417e-05/0.2595, allocations: 121.9 kB / 412.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/0.2596, allocations: 57.56 kB / 412.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.072e-05/0.2597, allocations: 11.89 kB / 412.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.2597, allocations: 4 kB / 412.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/0.2597, allocations: 4.266 kB / 412.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.2597, allocations: 0 / 412.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002159/0.2599, allocations: 153.7 kB / 412.6 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2599, allocations: 0 / 412.6 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.905e-05/0.26, allocations: 11.98 kB / 412.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.26, allocations: 11.92 kB / 412.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.993e-06/0.26, allocations: 0 / 412.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.26, allocations: 0 / 412.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.26, allocations: 0 / 412.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001422/0.2602, allocations: 85.06 kB / 412.7 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.985e-05/0.2602, allocations: 88.98 kB / 412.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.546e-05/0.2603, allocations: 3.938 kB / 412.8 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.378e-05/0.2603, allocations: 0 / 412.8 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.673e-06/0.2603, allocations: 4 kB / 412.8 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.621e-06/0.2603, allocations: 4.25 kB / 412.8 MB, free: 13.07 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.549e-05/0.2604, allocations: 91.27 kB / 412.9 MB, free: 12.98 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2604, allocations: 3.938 kB / 412.9 MB, free: 12.98 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002053/0.2606, allocations: 4 kB / 412.9 MB, free: 12.98 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * 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.0006788/0.2613, allocations: 0.6241 MB / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001229/0.2614, allocations: 31.92 kB / 413.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2614, allocations: 0 / 413.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.92e-07/0.2614, allocations: 0 / 413.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002492/0.2617, allocations: 20.02 kB / 413.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001115/0.2628, allocations: 1.146 MB / 414.8 MB, free: 11.03 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003369/0.2631, allocations: 0.6846 MB / 415.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.205e-05/0.2632, allocations: 3.984 kB / 415.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.307e-05/0.2632, allocations: 11.44 kB / 415.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of SimCode: time 6.81e-07/0.2632, allocations: 0 / 415.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01902/0.2823, allocations: 1.24 MB / 416.7 MB, free: 9.172 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.602/7.884, allocations: 14.59 kB / 416.7 MB, free: 9.16 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep_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_RealSignals_TimeBasedStep.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches