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.001798/0.001798, allocations: 118.3 kB / 17.78 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002354/0.002354, allocations: 201.2 kB / 18.74 MB, free: 4.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.503/1.503, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001732/0.001732, allocations: 63.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2855/0.2873, allocations: 50.53 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep): time 0.002826/0.2901, allocations: 1.487 MB / 410.2 MB, free: 24 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003008/0.2905, allocations: 95.69 kB / 410.3 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.577e-05/0.2905, allocations: 0 / 410.3 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.02e-05/0.2906, allocations: 0 / 410.3 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.67e-05/0.2906, allocations: 7.922 kB / 410.3 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002452/0.2909, allocations: 27.42 kB / 410.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.736e-05/0.291, allocations: 27.86 kB / 410.4 MB, free: 15.87 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000105/0.2911, allocations: 19.97 kB / 410.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.098e-05/0.2911, allocations: 8 kB / 410.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.677e-05/0.2912, allocations: 11.92 kB / 410.4 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.435e-05/0.2912, allocations: 0 / 410.4 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.183e-05/0.2912, allocations: 4 kB / 410.4 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.95e-05/0.2912, allocations: 7.938 kB / 410.5 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.482e-05/0.2913, allocations: 11.94 kB / 410.5 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 8.223e-05/0.2914, allocations: 23.91 kB / 410.5 MB, free: 15.79 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2914, allocations: 0 / 410.5 MB, free: 15.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2914, allocations: 0 / 410.5 MB, free: 15.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.459e-06/0.2914, allocations: 0 / 410.5 MB, free: 15.79 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.0004806/0.2919, allocations: 350.4 kB / 410.8 MB, free: 15.39 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.2919, allocations: 12.03 kB / 410.8 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.049e-05/0.292, allocations: 30.75 kB / 410.9 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.428e-05/0.292, allocations: 4.891 kB / 410.9 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002247/0.2922, allocations: 184.2 kB / 411.1 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.417e-06/0.2922, allocations: 4.312 kB / 411.1 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.106e-05/0.2923, allocations: 4.375 kB / 411.1 MB, free: 15.11 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003684/0.2926, allocations: 111.9 kB / 411.2 MB, free: 14.99 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.2927, allocations: 3.938 kB / 411.2 MB, free: 14.99 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.434e-06/0.2927, allocations: 0 / 411.2 MB, free: 14.99 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.2927, allocations: 3.938 kB / 411.2 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.592e-05/0.2928, allocations: 19.98 kB / 411.2 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001559/0.2929, allocations: 157.6 kB / 411.4 MB, free: 14.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001457/0.2931, allocations: 58.48 kB / 411.4 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.975e-05/0.2932, allocations: 24.92 kB / 411.4 MB, free: 14.67 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.719e-05/0.2932, allocations: 0 / 411.4 MB, free: 14.67 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.943e-05/0.2932, allocations: 34.56 kB / 411.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.22e-07/0.2932, allocations: 0 / 411.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002244/0.2934, allocations: 77.61 kB / 411.5 MB, free: 14.54 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.377e-05/0.2935, allocations: 55.53 kB / 411.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.515e-05/0.2936, allocations: 105.8 kB / 411.7 MB, free: 14.36 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.596e-05/0.2936, allocations: 25.7 kB / 411.7 MB, free: 14.33 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.278e-05/0.2937, allocations: 84.14 kB / 411.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.522e-06/0.2937, allocations: 0 / 411.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.198e-05/0.2937, allocations: 17.72 kB / 411.8 MB, free: 14.22 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.2939, allocations: 318.8 kB / 412.1 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.022e-05/0.2939, allocations: 4 kB / 412.1 MB, free: 13.9 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.422e-05/0.2939, allocations: 31.42 kB / 412.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.84e-05/0.294, allocations: 43.36 kB / 412.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.294, allocations: 0 / 412.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.9e-05/0.2941, allocations: 53.59 kB / 412.3 MB, free: 13.74 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.2941, allocations: 7.938 kB / 412.3 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.2941, allocations: 0 / 412.3 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/0.2942, allocations: 7.984 kB / 412.3 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.914e-05/0.2942, allocations: 7.938 kB / 412.3 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.2942, allocations: 4 kB / 412.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.073e-05/0.2942, allocations: 4.125 kB / 412.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.466e-06/0.2943, allocations: 0 / 412.3 MB, free: 13.71 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 7.772e-05/0.2943, allocations: 113.8 kB / 412.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001245/0.2945, allocations: 61.61 kB / 412.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.606e-05/0.2945, allocations: 7.906 kB / 412.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.2945, allocations: 3.938 kB / 412.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.2945, allocations: 0 / 412.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.2945, allocations: 0 / 412.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001206/0.2947, allocations: 153.7 kB / 412.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.2947, allocations: 4 kB / 412.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.953e-05/0.2947, allocations: 15.92 kB / 412.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.2947, allocations: 3.938 kB / 412.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.681e-06/0.2947, allocations: 0 / 412.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.2947, allocations: 0 / 412.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2947, allocations: 0 / 412.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001366/0.2949, allocations: 89.06 kB / 412.7 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.414e-05/0.295, allocations: 88.98 kB / 412.8 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.49e-05/0.295, allocations: 3.938 kB / 412.8 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.377e-05/0.295, allocations: 4.25 kB / 412.8 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.545e-06/0.295, allocations: 0 / 412.8 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-06/0.295, allocations: 4 kB / 412.8 MB, free: 13.05 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.939e-05/0.2951, allocations: 87.27 kB / 412.9 MB, free: 12.97 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2951, allocations: 0 / 412.9 MB, free: 12.97 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001844/0.2953, allocations: 4 kB / 412.9 MB, free: 12.96 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.0004847/0.2958, allocations: 0.6279 MB / 413.6 MB, free: 12.31 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001172/0.2959, allocations: 31.92 kB / 413.6 MB, free: 12.28 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2959, allocations: 0 / 413.6 MB, free: 12.28 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.81e-07/0.2959, allocations: 0 / 413.6 MB, free: 12.28 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002045/0.2961, allocations: 20.23 kB / 413.6 MB, free: 12.26 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001028/0.2971, allocations: 1.151 MB / 414.8 MB, free: 11.01 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003104/0.2975, allocations: 0.6806 MB / 415.4 MB, free: 10.3 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.507e-05/0.2975, allocations: 8 kB / 415.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.013e-05/0.2975, allocations: 7.438 kB / 415.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2975, allocations: 0 / 415.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02317/0.3207, allocations: 1.245 MB / 416.7 MB, free: 9.148 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.957/8.278, allocations: 8 kB / 416.7 MB, free: 9.141 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.1.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