Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_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.00144/0.00144, allocations: 121.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002064/0.002064, allocations: 204.7 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 63.89 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2913/0.2926, allocations: 50.54 MB / 408.7 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep): time 0.002555/0.2952, allocations: 1.428 MB / 410.2 MB, free: 144 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001867/0.2954, allocations: 39.84 kB / 410.2 MB, free: 104 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.917e-05/0.2955, allocations: 0 / 410.2 MB, free: 104 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.091e-05/0.2956, allocations: 4 kB / 410.2 MB, free: 100 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.632e-05/0.2956, allocations: 3.938 kB / 410.2 MB, free: 96 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002546/0.2959, allocations: 15.98 kB / 410.2 MB, free: 80 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.313e-05/0.296, allocations: 31.91 kB / 410.3 MB, free: 48 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.2961, allocations: 8 kB / 410.3 MB, free: 40 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.95e-05/0.2961, allocations: 11.92 kB / 410.3 MB, free: 28 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.87e-05/0.2962, allocations: 15.92 kB / 410.3 MB, free: 12 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.509e-05/0.2962, allocations: 8 kB / 410.3 MB, free: 4 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.147e-06/0.2962, allocations: 0 / 410.3 MB, free: 4 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.001e-05/0.2963, allocations: 8.078 kB / 410.3 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.125e-05/0.2963, allocations: 15.84 kB / 410.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001064/0.2964, allocations: 31.83 kB / 410.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.2964, allocations: 0 / 410.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2965, allocations: 0 / 410.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.2965, allocations: 0 / 410.4 MB, free: 15.95 MB / 334.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.0004921/0.297, allocations: 338.6 kB / 410.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.297, allocations: 8.031 kB / 410.7 MB, free: 15.56 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.247e-05/0.2971, allocations: 46.67 kB / 410.8 MB, free: 15.51 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.943e-05/0.2971, allocations: 4.938 kB / 410.8 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002442/0.2973, allocations: 176.3 kB / 410.9 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.109e-05/0.2974, allocations: 4.375 kB / 410.9 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.751e-05/0.2974, allocations: 4.375 kB / 410.9 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003544/0.2978, allocations: 115.8 kB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.2978, allocations: 7.938 kB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.336e-06/0.2978, allocations: 0 / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.2978, allocations: 0 / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001064/0.2979, allocations: 23.86 kB / 411.1 MB, free: 15.13 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000162/0.2981, allocations: 161.7 kB / 411.2 MB, free: 14.92 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001466/0.2982, allocations: 42.56 kB / 411.3 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.224e-05/0.2983, allocations: 28.92 kB / 411.3 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.006e-05/0.2983, allocations: 7.984 kB / 411.3 MB, free: 14.83 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.054e-05/0.2984, allocations: 34.56 kB / 411.4 MB, free: 14.79 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.2984, allocations: 0 / 411.4 MB, free: 14.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002596/0.2986, allocations: 85.48 kB / 411.4 MB, free: 14.7 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.447e-05/0.2987, allocations: 51.41 kB / 411.5 MB, free: 14.64 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.89e-05/0.2988, allocations: 105.8 kB / 411.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.67e-05/0.2988, allocations: 25.7 kB / 411.6 MB, free: 14.49 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.225e-05/0.2989, allocations: 84.14 kB / 411.7 MB, free: 14.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.479e-05/0.2989, allocations: 11.94 kB / 411.7 MB, free: 14.39 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.086e-05/0.2989, allocations: 17.72 kB / 411.7 MB, free: 14.37 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.299, allocations: 314.8 kB / 412 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.667e-05/0.299, allocations: 8 kB / 412 MB, free: 14.05 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.845e-05/0.2991, allocations: 23.44 kB / 412.1 MB, free: 14.01 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.815e-05/0.2991, allocations: 43.36 kB / 412.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.2992, allocations: 384 / 412.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.806e-05/0.2992, allocations: 69.52 kB / 412.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.2993, allocations: 7.938 kB / 412.2 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.2993, allocations: 0 / 412.2 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.2993, allocations: 4 kB / 412.2 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.863e-05/0.2994, allocations: 12.12 kB / 412.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.2994, allocations: 0 / 412.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.876e-05/0.2994, allocations: 0 / 412.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-06/0.2994, allocations: 4 kB / 412.2 MB, free: 13.85 MB / 334.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: 5 ($CLKPRE.step.counter,step.counter,step.y,assignClock1.y,assignClock1.u) * 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 8.64e-05/0.2995, allocations: 117.8 kB / 412.3 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001482/0.2997, allocations: 69.55 kB / 412.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.631e-05/0.2997, allocations: 3.5 kB / 412.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.2997, allocations: 0 / 412.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.2997, allocations: 0 / 412.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.2997, allocations: 4 kB / 412.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001067/0.2998, allocations: 157.7 kB / 412.5 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.2998, allocations: 0 / 412.5 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.186e-05/0.2999, allocations: 4 kB / 412.5 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.91e-06/0.2999, allocations: 3.938 kB / 412.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-06/0.2999, allocations: 0 / 412.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.2999, allocations: 7.938 kB / 412.6 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.2999, allocations: 7.969 kB / 412.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001624/0.3001, allocations: 89.06 kB / 412.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.593e-05/0.3001, allocations: 81.05 kB / 412.7 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.943e-05/0.3002, allocations: 15.88 kB / 412.7 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.722e-05/0.3002, allocations: 0 / 412.7 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.212e-06/0.3002, allocations: 0 / 412.7 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.3002, allocations: 4 kB / 412.8 MB, free: 13.19 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.872e-05/0.3003, allocations: 83.27 kB / 412.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3003, allocations: 0 / 412.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000186/0.3005, allocations: 8 kB / 412.8 MB, free: 13.1 MB / 334.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: 4 (assignClock1.u,assignClock1.y,step.y,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.000573/0.301, allocations: 0.6397 MB / 413.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001448/0.3012, allocations: 28.25 kB / 413.5 MB, free: 12.4 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.3012, allocations: 8 kB / 413.5 MB, free: 12.39 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.02e-07/0.3012, allocations: 0 / 413.5 MB, free: 12.39 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002344/0.3015, allocations: 20.44 kB / 413.5 MB, free: 12.37 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001003/0.3025, allocations: 1.173 MB / 414.7 MB, free: 11.1 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002445/0.3027, allocations: 0.6807 MB / 415.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.736e-05/0.3027, allocations: 0 / 415.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.637e-05/0.3028, allocations: 11.44 kB / 415.4 MB, free: 10.38 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3028, allocations: 4 kB / 415.4 MB, free: 10.38 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01818/0.321, allocations: 1.301 MB / 416.7 MB, free: 9.211 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.554/7.875, allocations: 7.797 kB / 416.7 MB, free: 9.203 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.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_BooleanSignals_TickBasedStep.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.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.counter,step.startTick,assignClock1.u,assignClock1.y