Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.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.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001218/0.001218, allocations: 106 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001109/0.001109, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.495/1.495, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 68.25 kB / 307.1 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1048, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep): time 0.003246/0.1081, allocations: 1.453 MB / 359 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002398/0.1083, allocations: 31.91 kB / 359.1 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.668e-05/0.1084, allocations: 0 / 359.1 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.068e-05/0.1085, allocations: 7.922 kB / 359.1 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.782e-05/0.1086, allocations: 7.938 kB / 359.1 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002574/0.1088, allocations: 27.97 kB / 359.1 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.268e-05/0.1089, allocations: 23.94 kB / 359.1 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.109, allocations: 11.98 kB / 359.2 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.157e-05/0.1091, allocations: 11.94 kB / 359.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.994e-05/0.1091, allocations: 15.92 kB / 359.2 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.51e-05/0.1092, allocations: 7.984 kB / 359.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.103e-05/0.1092, allocations: 0 / 359.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.228e-05/0.1092, allocations: 7.938 kB / 359.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.108e-05/0.1093, allocations: 19.92 kB / 359.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001181/0.1094, allocations: 27.91 kB / 359.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1094, allocations: 0 / 359.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1094, allocations: 0 / 359.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.1094, allocations: 0 / 359.2 MB, free: 12.34 MB / 302.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.0004448/0.1099, allocations: 343.7 kB / 359.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.1099, allocations: 12.03 kB / 359.6 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.055e-05/0.11, allocations: 34.75 kB / 359.6 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.909e-05/0.11, allocations: 4.844 kB / 359.6 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001944/0.1102, allocations: 188.2 kB / 359.8 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.083e-05/0.1102, allocations: 4.375 kB / 359.8 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.303e-05/0.1102, allocations: 8.312 kB / 359.8 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003717/0.1106, allocations: 119.8 kB / 359.9 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.1106, allocations: 3.938 kB / 359.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-06/0.1107, allocations: 0 / 359.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.1107, allocations: 4 kB / 359.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001216/0.1108, allocations: 23.97 kB / 360 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001654/0.111, allocations: 157.7 kB / 360.1 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000187/0.1112, allocations: 58.48 kB / 360.2 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.189e-05/0.1113, allocations: 24.92 kB / 360.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.438e-06/0.1113, allocations: 4 kB / 360.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.1113, allocations: 34.55 kB / 360.2 MB, free: 11.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.473e-06/0.1113, allocations: 0 / 360.2 MB, free: 11.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.000313/0.1116, allocations: 89.72 kB / 360.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.158e-05/0.1117, allocations: 55.41 kB / 360.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.904e-05/0.1118, allocations: 105.8 kB / 360.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.605e-05/0.1118, allocations: 25.7 kB / 360.5 MB, free: 10.85 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.4e-05/0.1119, allocations: 88.12 kB / 360.6 MB, free: 10.76 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.822e-05/0.1119, allocations: 4 kB / 360.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.042e-05/0.112, allocations: 13.72 kB / 360.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.1121, allocations: 318.8 kB / 360.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.829e-05/0.1122, allocations: 7.984 kB / 360.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.498e-05/0.1122, allocations: 33.11 kB / 361 MB, free: 10.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.3e-05/0.1123, allocations: 39.38 kB / 361 MB, free: 10.31 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.1123, allocations: 0 / 361 MB, free: 10.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001108/0.1124, allocations: 65.53 kB / 361.1 MB, free: 10.24 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.1124, allocations: 7.938 kB / 361.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.1124, allocations: 0 / 361.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.1125, allocations: 4 kB / 361.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.128e-05/0.1125, allocations: 11.94 kB / 361.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.1125, allocations: 3.984 kB / 361.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.382e-05/0.1126, allocations: 4.312 kB / 361.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.761e-06/0.1126, allocations: 8.125 kB / 361.1 MB, free: 10.2 MB / 302.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: 2 ($CLKPRE.step.counter,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 0.0001063/0.1127, allocations: 121.8 kB / 361.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001612/0.1129, allocations: 65.52 kB / 361.3 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.534e-05/0.1129, allocations: 7.906 kB / 361.3 MB, free: 9.988 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.778e-06/0.1129, allocations: 7.938 kB / 361.3 MB, free: 9.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.1129, allocations: 0 / 361.3 MB, free: 9.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.1129, allocations: 0 / 361.3 MB, free: 9.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001191/0.1131, allocations: 157.7 kB / 361.5 MB, free: 9.777 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1131, allocations: 0 / 361.5 MB, free: 9.777 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.977e-05/0.1131, allocations: 12 kB / 361.5 MB, free: 9.766 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.993e-06/0.1132, allocations: 7.922 kB / 361.5 MB, free: 9.758 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.1132, allocations: 0 / 361.5 MB, free: 9.758 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1132, allocations: 0 / 361.5 MB, free: 9.758 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1132, allocations: 0 / 361.5 MB, free: 9.758 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002067/0.1134, allocations: 85.11 kB / 361.6 MB, free: 9.656 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.3e-05/0.1135, allocations: 85.05 kB / 361.6 MB, free: 9.555 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.845e-05/0.1135, allocations: 3.938 kB / 361.7 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.829e-05/0.1135, allocations: 11.98 kB / 361.7 MB, free: 9.539 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.422e-06/0.1135, allocations: 0 / 361.7 MB, free: 9.539 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.889e-06/0.1135, allocations: 0 / 361.7 MB, free: 9.539 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.892e-05/0.1136, allocations: 83.28 kB / 361.7 MB, free: 9.457 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1136, allocations: 3.938 kB / 361.7 MB, free: 9.453 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001878/0.1138, allocations: 4 kB / 361.8 MB, free: 9.449 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: 1 (step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * 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.000683/0.1145, allocations: 0.6591 MB / 362.4 MB, free: 8.762 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001528/0.1147, allocations: 31.91 kB / 362.4 MB, free: 8.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.1147, allocations: 0 / 362.4 MB, free: 8.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.31e-07/0.1147, allocations: 0 / 362.4 MB, free: 8.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003624/0.115, allocations: 26.8 kB / 362.5 MB, free: 8.707 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001143/0.1162, allocations: 1.185 MB / 363.7 MB, free: 7.422 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002734/0.1165, allocations: 0.6768 MB / 364.3 MB, free: 6.719 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.486e-05/0.1165, allocations: 4.25 kB / 364.3 MB, free: 6.715 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.389e-05/0.1166, allocations: 11.44 kB / 364.3 MB, free: 6.703 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1166, allocations: 4 kB / 364.4 MB, free: 6.699 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01931/0.1359, allocations: 1.35 MB / 365.7 MB, free: 5.449 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.959/8.095, allocations: 7.938 kB / 365.7 MB, free: 5.441 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep_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_TickBasedStep.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock1.y Variables in the result:time,assignClock1.u,assignClock1.y,step.y,periodicClock1.period,step.height