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.001769/0.001769, allocations: 105.3 kB / 17.06 MB, free: 6.02 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.00199/0.001989, allocations: 192 kB / 18 MB, free: 5.098 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.382/1.382, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 51.91 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2459/0.2474, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.002591/0.25, allocations: 1.431 MB / 401.7 MB, free: 7.305 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002707/0.2503, allocations: 98.36 kB / 401.8 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.506e-05/0.2504, allocations: 1.062 kB / 401.8 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.276e-05/0.2505, allocations: 11.92 kB / 401.8 MB, free: 7.219 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.467e-05/0.2505, allocations: 3.938 kB / 401.8 MB, free: 7.215 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002216/0.2507, allocations: 20.2 kB / 401.8 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.769e-05/0.2508, allocations: 26.2 kB / 401.8 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.93e-05/0.2509, allocations: 8.609 kB / 401.8 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.009e-05/0.2509, allocations: 11.22 kB / 401.8 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.535e-05/0.251, allocations: 15.08 kB / 401.9 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.854e-05/0.251, allocations: 6.219 kB / 401.9 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.917e-06/0.251, allocations: 2.25 kB / 401.9 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.747e-05/0.251, allocations: 5.188 kB / 401.9 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.043e-05/0.2511, allocations: 15.53 kB / 401.9 MB, free: 7.145 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.691e-05/0.2512, allocations: 30.45 kB / 401.9 MB, free: 7.121 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.2512, allocations: 0 / 401.9 MB, free: 7.121 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.2512, allocations: 3.938 kB / 401.9 MB, free: 7.117 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.2512, allocations: 1.125 kB / 401.9 MB, free: 7.117 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.0004211/0.2516, allocations: 348.8 kB / 402.3 MB, free: 6.738 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.2517, allocations: 8.031 kB / 402.3 MB, free: 6.73 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.521e-05/0.2517, allocations: 34.75 kB / 402.3 MB, free: 6.688 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.185e-05/0.2518, allocations: 4.938 kB / 402.3 MB, free: 6.684 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002019/0.252, allocations: 180.3 kB / 402.5 MB, free: 6.469 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.159e-05/0.252, allocations: 4.375 kB / 402.5 MB, free: 6.465 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.786e-06/0.252, allocations: 4.375 kB / 402.5 MB, free: 6.461 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002889/0.2523, allocations: 107.8 kB / 402.6 MB, free: 6.344 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.2523, allocations: 3.938 kB / 402.6 MB, free: 6.34 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.442e-06/0.2523, allocations: 4 kB / 402.6 MB, free: 6.336 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.2523, allocations: 0 / 402.6 MB, free: 6.336 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.086e-05/0.2524, allocations: 23.92 kB / 402.6 MB, free: 6.312 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000152/0.2526, allocations: 153.7 kB / 402.8 MB, free: 6.113 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001557/0.2527, allocations: 54.58 kB / 402.8 MB, free: 6.051 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.053e-05/0.2528, allocations: 28.88 kB / 402.9 MB, free: 6.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.032e-05/0.2529, allocations: 4 kB / 402.9 MB, free: 6.016 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.818e-05/0.2529, allocations: 34.5 kB / 402.9 MB, free: 5.973 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.082e-06/0.2529, allocations: 0 / 402.9 MB, free: 5.973 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002253/0.2531, allocations: 73.56 kB / 403 MB, free: 5.895 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.132e-05/0.2532, allocations: 51.41 kB / 403 MB, free: 5.832 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.327e-05/0.2533, allocations: 113.8 kB / 403.1 MB, free: 5.711 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/0.2533, allocations: 29.7 kB / 403.2 MB, free: 5.676 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.529e-05/0.2533, allocations: 84.14 kB / 403.2 MB, free: 5.59 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.109e-05/0.2534, allocations: 7.984 kB / 403.2 MB, free: 5.582 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.855e-05/0.2534, allocations: 13.72 kB / 403.3 MB, free: 5.562 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.2535, allocations: 314.8 kB / 403.6 MB, free: 5.246 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.311e-05/0.2536, allocations: 4 kB / 403.6 MB, free: 5.242 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.263e-05/0.2536, allocations: 31.36 kB / 403.6 MB, free: 5.199 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.493e-05/0.2536, allocations: 31.44 kB / 403.6 MB, free: 5.156 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.2536, allocations: 0 / 403.6 MB, free: 5.156 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.694e-05/0.2537, allocations: 57.56 kB / 403.7 MB, free: 5.094 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.2538, allocations: 16.06 kB / 403.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.2538, allocations: 0 / 403.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.2538, allocations: 0 / 403.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.739e-05/0.2538, allocations: 8 kB / 403.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.2538, allocations: 0 / 403.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.213e-05/0.2539, allocations: 8 kB / 403.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.717e-06/0.2539, allocations: 256 / 403.7 MB, free: 5.062 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 8.366e-05/0.254, allocations: 117.8 kB / 403.8 MB, free: 4.938 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001171/0.2541, allocations: 65.56 kB / 403.9 MB, free: 4.867 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.116e-05/0.2541, allocations: 15.84 kB / 403.9 MB, free: 4.844 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.2541, allocations: 0 / 403.9 MB, free: 4.844 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.2542, allocations: 0 / 403.9 MB, free: 4.844 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.2542, allocations: 0 / 403.9 MB, free: 4.844 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001086/0.2543, allocations: 157.7 kB / 404.1 MB, free: 4.641 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.2543, allocations: 0 / 404.1 MB, free: 4.641 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.149e-05/0.2543, allocations: 8 kB / 404.1 MB, free: 4.633 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.878e-06/0.2543, allocations: 7.875 kB / 404.1 MB, free: 4.625 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-06/0.2544, allocations: 4 kB / 404.1 MB, free: 4.621 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.2544, allocations: 0 / 404.1 MB, free: 4.621 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.2544, allocations: 0 / 404.1 MB, free: 4.621 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001406/0.2545, allocations: 89.05 kB / 404.2 MB, free: 4.516 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.793e-05/0.2546, allocations: 89 kB / 404.3 MB, free: 4.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.239e-05/0.2546, allocations: 3.938 kB / 404.3 MB, free: 4.406 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.583e-05/0.2546, allocations: 3.984 kB / 404.3 MB, free: 4.402 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.324e-06/0.2546, allocations: 384 / 404.3 MB, free: 4.402 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.941e-06/0.2546, allocations: 4 kB / 404.3 MB, free: 4.398 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.754e-05/0.2547, allocations: 87.28 kB / 404.4 MB, free: 4.312 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2547, allocations: 0 / 404.4 MB, free: 4.312 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001797/0.2549, 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: 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.0004474/0.2553, allocations: 0.624 MB / 405 MB, free: 3.656 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001182/0.2555, allocations: 27.98 kB / 405 MB, free: 3.629 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2555, allocations: 0 / 405 MB, free: 3.629 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.71e-07/0.2555, allocations: 0 / 405 MB, free: 3.629 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002031/0.2557, allocations: 27.91 kB / 405 MB, free: 3.602 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009515/0.2566, allocations: 1.157 MB / 406.2 MB, free: 2.348 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002643/0.2569, allocations: 0.6805 MB / 406.9 MB, free: 1.641 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.504e-05/0.2569, allocations: 4.094 kB / 406.9 MB, free: 1.637 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.606e-05/0.257, allocations: 15.38 kB / 406.9 MB, free: 1.621 MB / 318.1 MB Notification: Performance of SimCode: time 3.2e-07/0.257, allocations: 0 / 406.9 MB, free: 1.621 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01985/0.2768, allocations: 1.244 MB / 408.1 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.848/8.125, allocations: 4.562 kB / 408.1 MB, free: 0.5078 MB / 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