Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.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.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001198/0.001199, allocations: 106.3 kB / 17.06 MB, free: 5.82 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.001136/0.001136, allocations: 195.9 kB / 18 MB, free: 4.965 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.317/1.317, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 47.91 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2438, allocations: 49.45 MB / 400.2 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep): time 0.002718/0.2465, allocations: 1.454 MB / 401.7 MB, free: 7.305 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002884/0.2468, allocations: 106.2 kB / 401.8 MB, free: 7.223 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.07e-05/0.2469, allocations: 4.906 kB / 401.8 MB, free: 7.219 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.829e-05/0.247, allocations: 3.938 kB / 401.8 MB, free: 7.215 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.383e-05/0.247, allocations: 8.969 kB / 401.8 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002296/0.2473, allocations: 22.3 kB / 401.8 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.273e-05/0.2473, allocations: 29.69 kB / 401.9 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.671e-05/0.2474, allocations: 5.5 kB / 401.9 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.576e-05/0.2475, allocations: 15.73 kB / 401.9 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.859e-05/0.2475, allocations: 10.53 kB / 401.9 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.638e-05/0.2476, allocations: 6.344 kB / 401.9 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.566e-06/0.2476, allocations: 2.594 kB / 401.9 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.601e-05/0.2476, allocations: 1.188 kB / 401.9 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.683e-05/0.2476, allocations: 19.11 kB / 401.9 MB, free: 7.137 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.948e-05/0.2477, allocations: 25.8 kB / 402 MB, free: 7.117 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.2477, allocations: 5.375 kB / 402 MB, free: 7.113 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2477, allocations: 0 / 402 MB, free: 7.113 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.499e-06/0.2477, allocations: 0 / 402 MB, free: 7.113 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.0003842/0.2481, allocations: 341.7 kB / 402.3 MB, free: 6.742 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.2482, allocations: 15.97 kB / 402.3 MB, free: 6.727 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.842e-05/0.2482, allocations: 38.73 kB / 402.3 MB, free: 6.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.359e-05/0.2483, allocations: 0.9375 kB / 402.4 MB, free: 6.68 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002116/0.2485, allocations: 180.3 kB / 402.5 MB, free: 6.465 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.155e-06/0.2485, allocations: 4.375 kB / 402.5 MB, free: 6.461 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.397e-06/0.2485, allocations: 384 / 402.5 MB, free: 6.461 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003057/0.2488, allocations: 111.9 kB / 402.6 MB, free: 6.34 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.2488, allocations: 3.938 kB / 402.6 MB, free: 6.336 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.574e-06/0.2489, allocations: 0 / 402.6 MB, free: 6.336 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.2489, allocations: 4 kB / 402.6 MB, free: 6.332 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.952e-05/0.2489, allocations: 19.98 kB / 402.7 MB, free: 6.312 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001277/0.2491, allocations: 161.6 kB / 402.8 MB, free: 6.105 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001449/0.2492, allocations: 58.55 kB / 402.9 MB, free: 6.039 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.648e-05/0.2493, allocations: 20.89 kB / 402.9 MB, free: 6.016 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.243e-05/0.2493, allocations: 8.016 kB / 402.9 MB, free: 6.008 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.322e-05/0.2494, allocations: 30.56 kB / 402.9 MB, free: 5.969 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.2494, allocations: 0 / 402.9 MB, free: 5.969 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002243/0.2496, allocations: 77.5 kB / 403 MB, free: 5.887 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.06e-05/0.2497, allocations: 59.41 kB / 403.1 MB, free: 5.816 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.712e-05/0.2497, allocations: 101.8 kB / 403.2 MB, free: 5.707 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.123e-05/0.2497, allocations: 33.7 kB / 403.2 MB, free: 5.668 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.267e-05/0.2498, allocations: 80.14 kB / 403.3 MB, free: 5.586 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.093e-06/0.2498, allocations: 0 / 403.3 MB, free: 5.586 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.08e-05/0.2498, allocations: 17.72 kB / 403.3 MB, free: 5.562 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.505e-05/0.2499, allocations: 314.8 kB / 403.6 MB, free: 5.246 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.294e-05/0.25, allocations: 11.94 kB / 403.6 MB, free: 5.234 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.327e-05/0.25, allocations: 27.44 kB / 403.6 MB, free: 5.195 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.754e-05/0.25, allocations: 35.31 kB / 403.7 MB, free: 5.148 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-06/0.25, allocations: 0 / 403.7 MB, free: 5.148 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.663e-05/0.2501, allocations: 57.62 kB / 403.7 MB, free: 5.086 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.2501, allocations: 15.88 kB / 403.8 MB, free: 5.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.2501, allocations: 0 / 403.8 MB, free: 5.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.2502, allocations: 0 / 403.8 MB, free: 5.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.608e-05/0.2502, allocations: 8 kB / 403.8 MB, free: 5.062 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.2502, allocations: 3.984 kB / 403.8 MB, free: 5.059 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.158e-05/0.2503, allocations: 4 kB / 403.8 MB, free: 5.055 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.466e-06/0.2503, allocations: 0 / 403.8 MB, free: 5.055 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: 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 6.578e-05/0.2503, allocations: 118 kB / 403.9 MB, free: 4.93 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001079/0.2504, allocations: 61.52 kB / 403.9 MB, free: 4.863 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.743e-05/0.2505, allocations: 7.906 kB / 404 MB, free: 4.848 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.2505, allocations: 7.984 kB / 404 MB, free: 4.84 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.2505, allocations: 0 / 404 MB, free: 4.84 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.2505, allocations: 0 / 404 MB, free: 4.84 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.234e-05/0.2506, allocations: 153.7 kB / 404.1 MB, free: 4.641 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.2506, allocations: 0 / 404.1 MB, free: 4.641 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.926e-05/0.2507, allocations: 11.98 kB / 404.1 MB, free: 4.629 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.2507, allocations: 3.938 kB / 404.1 MB, free: 4.625 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.151e-06/0.2507, allocations: 4 kB / 404.1 MB, free: 4.621 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.2507, allocations: 0 / 404.1 MB, free: 4.621 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2507, allocations: 256 / 404.1 MB, free: 4.621 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001251/0.2508, allocations: 81.11 kB / 404.2 MB, free: 4.523 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.83e-05/0.2509, allocations: 89 kB / 404.3 MB, free: 4.418 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.421e-05/0.2509, allocations: 7.938 kB / 404.3 MB, free: 4.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.323e-05/0.2509, allocations: 0 / 404.3 MB, free: 4.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.304e-06/0.2509, allocations: 4 kB / 404.3 MB, free: 4.406 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.981e-06/0.2509, allocations: 4 kB / 404.3 MB, free: 4.402 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.782e-05/0.251, allocations: 91.2 kB / 404.4 MB, free: 4.312 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.251, allocations: 0 / 404.4 MB, free: 4.312 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001852/0.2512, allocations: 4 kB / 404.4 MB, free: 4.309 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: 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.0003774/0.2515, allocations: 0.6245 MB / 405 MB, free: 3.656 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001074/0.2517, allocations: 31.92 kB / 405.1 MB, free: 3.625 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2517, allocations: 3.938 kB / 405.1 MB, free: 3.621 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.01e-07/0.2517, allocations: 0 / 405.1 MB, free: 3.621 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002106/0.2519, allocations: 28 kB / 405.1 MB, free: 3.594 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008726/0.2528, allocations: 1.158 MB / 406.3 MB, free: 2.336 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001943/0.253, allocations: 0.6805 MB / 406.9 MB, free: 1.629 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.413e-05/0.253, allocations: 4 kB / 406.9 MB, free: 1.625 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.395e-05/0.253, allocations: 15.36 kB / 406.9 MB, free: 1.609 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2531, allocations: 0 / 406.9 MB, free: 1.609 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01702/0.2701, allocations: 1.245 MB / 408.2 MB, free: 488 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.399/7.669, allocations: 8.188 kB / 408.2 MB, free: 484 kB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches