Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.001528/0.001528, 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.001307/0.001307, 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.279/1.279, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009728/0.0009728, allocations: 43.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2833, allocations: 49.44 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.002512/0.2858, allocations: 1.428 MB / 401.7 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002863/0.2861, allocations: 102.4 kB / 401.8 MB, free: 7.211 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.802e-05/0.2862, allocations: 1.188 kB / 401.8 MB, free: 7.211 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.309e-05/0.2863, allocations: 7.922 kB / 401.8 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.699e-05/0.2863, allocations: 3.938 kB / 401.8 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002373/0.2865, allocations: 23.56 kB / 401.8 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.42e-05/0.2866, allocations: 18.03 kB / 401.8 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001024/0.2867, allocations: 13.02 kB / 401.8 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.391e-05/0.2868, allocations: 15.44 kB / 401.8 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.464e-05/0.2868, allocations: 15.05 kB / 401.9 MB, free: 7.145 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.109e-05/0.2869, allocations: 2.156 kB / 401.9 MB, free: 7.145 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.197e-06/0.2869, allocations: 2.094 kB / 401.9 MB, free: 7.145 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.792e-05/0.2869, allocations: 5.219 kB / 401.9 MB, free: 7.141 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.072e-05/0.2869, allocations: 12.03 kB / 401.9 MB, free: 7.133 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.216e-05/0.287, allocations: 26.67 kB / 401.9 MB, free: 7.113 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.287, allocations: 3.938 kB / 401.9 MB, free: 7.109 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.287, allocations: 0 / 401.9 MB, free: 7.109 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.668e-06/0.287, allocations: 0 / 401.9 MB, free: 7.109 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.0004358/0.2875, allocations: 360.4 kB / 402.3 MB, free: 6.723 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.2875, allocations: 8.031 kB / 402.3 MB, free: 6.715 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.315e-05/0.2876, allocations: 38.75 kB / 402.3 MB, free: 6.668 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.086e-05/0.2876, allocations: 0.9375 kB / 402.3 MB, free: 6.668 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002117/0.2878, allocations: 184.3 kB / 402.5 MB, free: 6.449 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.631e-06/0.2878, allocations: 384 / 402.5 MB, free: 6.449 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.083e-05/0.2878, allocations: 384 / 402.5 MB, free: 6.449 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002918/0.2881, allocations: 119.8 kB / 402.6 MB, free: 6.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.2882, allocations: 3.938 kB / 402.6 MB, free: 6.316 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.2882, allocations: 4 kB / 402.6 MB, free: 6.312 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.2882, allocations: 3.938 kB / 402.6 MB, free: 6.309 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.494e-05/0.2883, allocations: 19.92 kB / 402.6 MB, free: 6.289 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001264/0.2884, allocations: 153.7 kB / 402.8 MB, free: 6.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000144/0.2886, allocations: 62.53 kB / 402.8 MB, free: 6.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.866e-05/0.2886, allocations: 24.92 kB / 402.9 MB, free: 5.992 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.452e-05/0.2886, allocations: 0 / 402.9 MB, free: 5.992 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.741e-05/0.2887, allocations: 30.56 kB / 402.9 MB, free: 5.953 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 8.52e-07/0.2887, allocations: 0 / 402.9 MB, free: 5.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002258/0.2889, allocations: 81.5 kB / 403 MB, free: 5.867 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.039e-05/0.2889, allocations: 55.41 kB / 403 MB, free: 5.801 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.228e-05/0.289, allocations: 109.8 kB / 403.1 MB, free: 5.684 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.716e-05/0.289, allocations: 29.7 kB / 403.2 MB, free: 5.648 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.437e-05/0.2891, allocations: 80.14 kB / 403.2 MB, free: 5.566 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.162e-06/0.2891, allocations: 0 / 403.2 MB, free: 5.566 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.921e-05/0.2891, allocations: 21.7 kB / 403.3 MB, free: 5.539 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.215e-05/0.2892, allocations: 310.8 kB / 403.6 MB, free: 5.227 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.239e-05/0.2892, allocations: 12 kB / 403.6 MB, free: 5.215 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.813e-05/0.2893, allocations: 27.42 kB / 403.6 MB, free: 5.176 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.825e-05/0.2893, allocations: 35.38 kB / 403.6 MB, free: 5.129 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.2893, allocations: 4 kB / 403.6 MB, free: 5.125 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.92e-05/0.2894, allocations: 57.56 kB / 403.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.2894, allocations: 7.938 kB / 403.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.2894, allocations: 0 / 403.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.2895, allocations: 4 kB / 403.7 MB, free: 5.051 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.831e-05/0.2895, allocations: 4 kB / 403.7 MB, free: 5.047 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.2895, allocations: 4 kB / 403.7 MB, free: 5.043 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.759e-05/0.2895, allocations: 0 / 403.7 MB, free: 5.043 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.366e-06/0.2895, allocations: 128 / 403.7 MB, free: 5.043 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: 3 (assignClock1.y,assignClock1.u,step.y) * 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.978e-05/0.2896, allocations: 117.8 kB / 403.8 MB, free: 4.918 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001071/0.2897, allocations: 73.5 kB / 403.9 MB, free: 4.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.753e-05/0.2898, allocations: 3.906 kB / 403.9 MB, free: 4.828 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.2898, allocations: 0 / 403.9 MB, free: 4.828 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.2898, allocations: 4.188 kB / 403.9 MB, free: 4.824 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.2898, allocations: 0 / 403.9 MB, free: 4.824 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.45e-05/0.2899, allocations: 161.7 kB / 404.1 MB, free: 4.617 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.2899, allocations: 0 / 404.1 MB, free: 4.617 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.797e-05/0.2899, allocations: 15.94 kB / 404.1 MB, free: 4.602 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.29, allocations: 3.938 kB / 404.1 MB, free: 4.598 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-06/0.29, allocations: 0 / 404.1 MB, free: 4.598 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.29, allocations: 0 / 404.1 MB, free: 4.598 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.29, allocations: 4 kB / 404.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001211/0.2901, allocations: 81.11 kB / 404.2 MB, free: 4.496 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.709e-05/0.2901, allocations: 88.94 kB / 404.3 MB, free: 4.391 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.385e-05/0.2902, allocations: 4.312 kB / 404.3 MB, free: 4.387 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.732e-05/0.2902, allocations: 15.98 kB / 404.3 MB, free: 4.371 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.741e-06/0.2902, allocations: 0 / 404.3 MB, free: 4.371 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-06/0.2902, allocations: 0 / 404.3 MB, free: 4.371 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.415e-05/0.2903, allocations: 79.28 kB / 404.4 MB, free: 4.293 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2903, allocations: 0 / 404.4 MB, free: 4.293 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001802/0.2904, allocations: 8 kB / 404.4 MB, free: 4.285 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: 3 (step.y,assignClock1.u,assignClock1.y) * 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.0003807/0.2908, allocations: 0.628 MB / 405 MB, free: 3.629 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001027/0.2909, allocations: 23.92 kB / 405 MB, free: 3.605 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.291, allocations: 0 / 405 MB, free: 3.605 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.61e-07/0.291, allocations: 0 / 405 MB, free: 3.605 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000207/0.2912, allocations: 28 kB / 405 MB, free: 3.578 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008248/0.292, allocations: 1.15 MB / 406.2 MB, free: 2.328 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001946/0.2922, allocations: 0.6844 MB / 406.9 MB, free: 1.617 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.253e-05/0.2922, allocations: 0 / 406.9 MB, free: 1.617 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.367e-05/0.2923, allocations: 11.44 kB / 406.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2923, allocations: 4.094 kB / 406.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01561/0.3079, allocations: 1.249 MB / 408.1 MB, free: 500 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.469/7.777, allocations: 4.141 kB / 408.2 MB, free: 500 kB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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_IntegerSignals_TimeBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock1.y Variables in the result:time,periodicClock1.period,step.startTime,assignClock1.u,assignClock1.y,step.y