Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.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.BooleanSignals.TimeBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001112/0.001112, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001224/0.001224, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 60.27 kB / 307.1 MB, free: 0.5547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1026, allocations: 50.53 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep): time 0.00304/0.1057, allocations: 1.433 MB / 359 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000305/0.106, allocations: 93.38 kB / 359.1 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.891e-05/0.1061, allocations: 4 kB / 359.1 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.425e-05/0.1062, allocations: 3.938 kB / 359.1 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.618e-05/0.1062, allocations: 0 / 359.1 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003104/0.1066, allocations: 27.91 kB / 359.1 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.735e-05/0.1067, allocations: 23.92 kB / 359.2 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000107/0.1068, allocations: 11.92 kB / 359.2 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.307e-05/0.1068, allocations: 8 kB / 359.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.432e-05/0.1068, allocations: 19.92 kB / 359.2 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.162e-05/0.1069, allocations: 7.984 kB / 359.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.107e-05/0.1069, allocations: 0 / 359.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.427e-05/0.1069, allocations: 3.938 kB / 359.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.485e-05/0.107, allocations: 11.94 kB / 359.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.768e-05/0.1071, allocations: 27.91 kB / 359.3 MB, free: 12.35 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.1071, allocations: 0 / 359.3 MB, free: 12.35 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1071, allocations: 0 / 359.3 MB, free: 12.35 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.775e-06/0.1071, allocations: 0 / 359.3 MB, free: 12.35 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.0004779/0.1076, allocations: 343.7 kB / 359.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.1076, allocations: 15.97 kB / 359.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.239e-05/0.1077, allocations: 30.75 kB / 359.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.338e-05/0.1077, allocations: 8.844 kB / 359.6 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002064/0.1079, allocations: 176.3 kB / 359.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.182e-05/0.108, allocations: 384 / 359.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.357e-05/0.108, allocations: 4.375 kB / 359.8 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002969/0.1083, allocations: 107.9 kB / 359.9 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.1083, allocations: 3.938 kB / 359.9 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.408e-06/0.1083, allocations: 0 / 359.9 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.1083, allocations: 0 / 359.9 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.099e-05/0.1084, allocations: 15.98 kB / 359.9 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001879/0.1086, allocations: 157.6 kB / 360.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001423/0.1088, allocations: 50.5 kB / 360.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.546e-05/0.1088, allocations: 24.92 kB / 360.2 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.936e-05/0.1089, allocations: 0 / 360.2 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.633e-05/0.1089, allocations: 38.56 kB / 360.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 9.62e-07/0.1089, allocations: 0 / 360.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002131/0.1091, allocations: 65.61 kB / 360.3 MB, free: 11.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.032e-05/0.1092, allocations: 55.34 kB / 360.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001059/0.1093, allocations: 109.8 kB / 360.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.761e-05/0.1093, allocations: 25.7 kB / 360.5 MB, free: 10.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.893e-05/0.1094, allocations: 84.14 kB / 360.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.799e-06/0.1094, allocations: 0 / 360.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.738e-05/0.1094, allocations: 21.66 kB / 360.6 MB, free: 10.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.1096, allocations: 314.8 kB / 360.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.542e-05/0.1096, allocations: 3.984 kB / 360.9 MB, free: 10.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.901e-05/0.1096, allocations: 31.44 kB / 360.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.638e-05/0.1097, allocations: 39.38 kB / 360.9 MB, free: 10.4 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.1097, allocations: 0 / 360.9 MB, free: 10.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.374e-05/0.1098, allocations: 53.75 kB / 361 MB, free: 10.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.1098, allocations: 11.94 kB / 361 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.1098, allocations: 0 / 361 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.1098, allocations: 4 kB / 361 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.992e-05/0.1099, allocations: 7.938 kB / 361 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.1099, allocations: 0 / 361 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.415e-05/0.1099, allocations: 8.125 kB / 361 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-06/0.1099, allocations: 4 kB / 361 MB, free: 10.3 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: 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.344e-05/0.11, allocations: 117.8 kB / 361.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.901e-05/0.1101, allocations: 61.61 kB / 361.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.359e-05/0.1102, allocations: 7.5 kB / 361.2 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.1102, allocations: 4 kB / 361.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.1102, allocations: 0 / 361.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.1102, allocations: 3.938 kB / 361.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.759e-05/0.1103, allocations: 153.7 kB / 361.4 MB, free: 9.891 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1103, allocations: 0 / 361.4 MB, free: 9.891 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.262e-05/0.1103, allocations: 7.922 kB / 361.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.107e-05/0.1104, allocations: 7.938 kB / 361.4 MB, free: 9.875 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.134e-06/0.1104, allocations: 0 / 361.4 MB, free: 9.875 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.1104, allocations: 0 / 361.4 MB, free: 9.875 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.1104, allocations: 4 kB / 361.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001169/0.1105, allocations: 73.12 kB / 361.5 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.516e-05/0.1106, allocations: 85.27 kB / 361.5 MB, free: 9.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.721e-05/0.1106, allocations: 7.922 kB / 361.6 MB, free: 9.672 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.254e-05/0.1106, allocations: 4 kB / 361.6 MB, free: 9.668 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.868e-06/0.1106, allocations: 0 / 361.6 MB, free: 9.668 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.536e-06/0.1106, allocations: 0 / 361.6 MB, free: 9.668 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.427e-05/0.1107, allocations: 87.28 kB / 361.6 MB, free: 9.582 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1107, allocations: 4 kB / 361.6 MB, free: 9.578 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001952/0.1109, allocations: 0 / 361.6 MB, free: 9.578 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.000501/0.1114, allocations: 0.6201 MB / 362.3 MB, free: 8.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001401/0.1116, allocations: 27.98 kB / 362.3 MB, free: 8.902 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.1116, allocations: 0 / 362.3 MB, free: 8.902 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.51e-07/0.1116, allocations: 0 / 362.3 MB, free: 8.902 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002407/0.1118, allocations: 24 kB / 362.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001197/0.113, allocations: 1.154 MB / 363.5 MB, free: 7.625 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002871/0.1133, allocations: 0.6768 MB / 364.2 MB, free: 6.922 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.859e-05/0.1134, allocations: 7.984 kB / 364.2 MB, free: 6.914 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.473e-05/0.1134, allocations: 7.438 kB / 364.2 MB, free: 6.906 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1134, allocations: 0 / 364.2 MB, free: 6.906 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01951/0.1329, allocations: 1.213 MB / 365.4 MB, free: 5.812 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.62/7.753, allocations: 3.859 kB / 365.4 MB, free: 5.809 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.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_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedStep.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches