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.001498/0.001498, allocations: 109.7 kB / 16.92 MB, free: 6.145 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.001705/0.001705, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.361/1.361, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001983/0.001983, allocations: 47.95 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1098, allocations: 49.44 MB / 350.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.002962/0.1128, allocations: 1.43 MB / 351.6 MB, free: 2.867 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002843/0.1131, allocations: 105.1 kB / 351.7 MB, free: 2.766 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.807e-05/0.1132, allocations: 4 kB / 351.7 MB, free: 2.762 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.002e-05/0.1133, allocations: 3.938 kB / 351.7 MB, free: 2.758 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.445e-05/0.1133, allocations: 7.938 kB / 351.7 MB, free: 2.75 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002811/0.1136, allocations: 19.91 kB / 351.7 MB, free: 2.73 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.791e-05/0.1137, allocations: 31.92 kB / 351.8 MB, free: 2.699 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.1138, allocations: 8 kB / 351.8 MB, free: 2.691 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.5e-05/0.1139, allocations: 7.938 kB / 351.8 MB, free: 2.684 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.467e-05/0.1139, allocations: 15.92 kB / 351.8 MB, free: 2.668 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.779e-05/0.114, allocations: 4 kB / 351.8 MB, free: 2.664 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.487e-06/0.114, allocations: 0 / 351.8 MB, free: 2.664 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.146e-05/0.114, allocations: 11.94 kB / 351.8 MB, free: 2.652 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.395e-05/0.114, allocations: 11.94 kB / 351.8 MB, free: 2.641 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.345e-05/0.1141, allocations: 27.89 kB / 351.9 MB, free: 2.613 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.1141, allocations: 0 / 351.9 MB, free: 2.613 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1141, allocations: 0 / 351.9 MB, free: 2.613 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.1141, allocations: 0 / 351.9 MB, free: 2.613 MB / 286.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.0004327/0.1146, allocations: 339.7 kB / 352.2 MB, free: 2.23 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.1146, allocations: 12.03 kB / 352.2 MB, free: 2.219 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.743e-05/0.1147, allocations: 34.75 kB / 352.2 MB, free: 2.176 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.892e-05/0.1147, allocations: 12.84 kB / 352.2 MB, free: 2.164 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000176/0.1149, allocations: 168.4 kB / 352.4 MB, free: 1.961 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.675e-06/0.1149, allocations: 4.375 kB / 352.4 MB, free: 1.957 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.304e-05/0.1149, allocations: 4.375 kB / 352.4 MB, free: 1.953 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003026/0.1152, allocations: 107.7 kB / 352.5 MB, free: 1.836 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.759e-06/0.1153, allocations: 11.94 kB / 352.5 MB, free: 1.824 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.006e-05/0.1153, allocations: 4 kB / 352.5 MB, free: 1.82 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.1153, allocations: 0 / 352.5 MB, free: 1.82 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.49e-05/0.1154, allocations: 11.98 kB / 352.5 MB, free: 1.809 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001324/0.1155, allocations: 153.7 kB / 352.7 MB, free: 1.609 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001506/0.1157, allocations: 54.55 kB / 352.8 MB, free: 1.547 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.297e-05/0.1157, allocations: 28.92 kB / 352.8 MB, free: 1.516 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.509e-05/0.1158, allocations: 0 / 352.8 MB, free: 1.516 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.16e-05/0.1158, allocations: 38.5 kB / 352.8 MB, free: 1.469 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 3.437e-06/0.1158, allocations: 0 / 352.8 MB, free: 1.469 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.000223/0.116, allocations: 77.53 kB / 352.9 MB, free: 1.387 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.862e-05/0.1161, allocations: 55.41 kB / 352.9 MB, free: 1.32 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.245e-05/0.1162, allocations: 105.8 kB / 353 MB, free: 1.207 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.657e-05/0.1162, allocations: 29.7 kB / 353.1 MB, free: 1.172 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.698e-05/0.1162, allocations: 92.06 kB / 353.2 MB, free: 1.078 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.486e-06/0.1162, allocations: 3.984 kB / 353.2 MB, free: 1.074 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.068e-05/0.1163, allocations: 17.72 kB / 353.2 MB, free: 1.051 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.503e-05/0.1164, allocations: 314.8 kB / 353.5 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.085e-05/0.1164, allocations: 0 / 353.5 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.343e-05/0.1164, allocations: 35.36 kB / 353.5 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.92e-05/0.1165, allocations: 35.44 kB / 353.6 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1165, allocations: 3.938 kB / 353.6 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.672e-05/0.1166, allocations: 57.53 kB / 353.6 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.1166, allocations: 12.06 kB / 353.6 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.1166, allocations: 4 kB / 353.6 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.1166, allocations: 0 / 353.6 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.215e-05/0.1167, allocations: 4.25 kB / 353.6 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.1167, allocations: 4 kB / 353.6 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.316e-05/0.1167, allocations: 7.938 kB / 353.7 MB, free: 0.543 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.31e-06/0.1167, allocations: 4 kB / 353.7 MB, free: 0.5391 MB / 286.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.02e-05/0.1168, allocations: 117.8 kB / 353.8 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001092/0.1169, allocations: 65.61 kB / 353.8 MB, free: 352 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.976e-05/0.117, allocations: 7.906 kB / 353.8 MB, free: 336 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.117, allocations: 0 / 353.8 MB, free: 336 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.117, allocations: 0 / 353.8 MB, free: 336 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.117, allocations: 0 / 353.8 MB, free: 336 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000107/0.1171, allocations: 157.7 kB / 354 MB, free: 128 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1171, allocations: 0 / 354 MB, free: 128 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.031e-05/0.1172, allocations: 8 kB / 354 MB, free: 120 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.127e-06/0.1172, allocations: 3.938 kB / 354 MB, free: 116 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.75e-06/0.1172, allocations: 0 / 354 MB, free: 116 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.1172, allocations: 4 kB / 354 MB, free: 112 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1172, allocations: 4 kB / 354 MB, free: 108 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001424/0.1173, allocations: 88.95 kB / 354.1 MB, free: 0 / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.635e-05/0.1174, allocations: 77.11 kB / 354.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.592e-05/0.1174, allocations: 3.938 kB / 354.2 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.857e-05/0.1175, allocations: 11.92 kB / 354.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.312e-06/0.1175, allocations: 0 / 354.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-06/0.1175, allocations: 0 / 354.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.369e-05/0.1175, allocations: 87.28 kB / 354.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1175, allocations: 0 / 354.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000187/0.1177, allocations: 4 kB / 354.3 MB, free: 15.8 MB / 302.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.0004767/0.1182, allocations: 0.6317 MB / 354.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001164/0.1183, allocations: 24.41 kB / 354.9 MB, free: 15.12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.1184, allocations: 3.938 kB / 354.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.42e-07/0.1184, allocations: 0 / 354.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002145/0.1186, allocations: 27.95 kB / 355 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009009/0.1195, allocations: 1.154 MB / 356.1 MB, free: 13.83 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002376/0.1197, allocations: 0.6807 MB / 356.8 MB, free: 13.12 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.241e-05/0.1198, allocations: 0 / 356.8 MB, free: 13.12 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.672e-05/0.1198, allocations: 19.38 kB / 356.8 MB, free: 13.1 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1198, allocations: 0 / 356.8 MB, free: 13.1 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0167/0.1365, allocations: 1.21 MB / 358 MB, free: 12 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.418/7.555, allocations: 7.625 kB / 358 MB, free: 12 MB / 302.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