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.00112/0.00112, allocations: 117.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.001403/0.001403, allocations: 200.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.394/1.394, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 63.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3263/0.3276, allocations: 50.53 MB / 408.7 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep): time 0.002785/0.3304, allocations: 1.44 MB / 410.2 MB, free: 104 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002593/0.3307, allocations: 99.67 kB / 410.3 MB, free: 4 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.081e-05/0.3307, allocations: 4 kB / 410.3 MB, free: 0 / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.471e-05/0.3308, allocations: 0 / 410.3 MB, free: 0 / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.754e-05/0.3308, allocations: 7.984 kB / 410.3 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002329/0.3311, allocations: 27.91 kB / 410.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.333e-05/0.3312, allocations: 23.92 kB / 410.3 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.676e-05/0.3312, allocations: 8 kB / 410.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.329e-05/0.3313, allocations: 15.92 kB / 410.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.005e-05/0.3313, allocations: 7.938 kB / 410.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.151e-05/0.3314, allocations: 4 kB / 410.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.205e-06/0.3314, allocations: 0 / 410.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.876e-05/0.3314, allocations: 7.984 kB / 410.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.003e-05/0.3314, allocations: 15.88 kB / 410.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 8.351e-05/0.3315, allocations: 31.89 kB / 410.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3315, allocations: 0 / 410.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3316, allocations: 0 / 410.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.478e-06/0.3316, allocations: 0 / 410.4 MB, free: 15.85 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.0003993/0.332, allocations: 334.6 kB / 410.8 MB, free: 15.47 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.332, allocations: 8.031 kB / 410.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.921e-05/0.3321, allocations: 34.75 kB / 410.8 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.857e-05/0.3321, allocations: 4.938 kB / 410.8 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002016/0.3323, allocations: 180.2 kB / 411 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.069e-05/0.3323, allocations: 16.31 kB / 411 MB, free: 15.19 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.456e-06/0.3323, allocations: 4.312 kB / 411 MB, free: 15.18 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002565/0.3326, allocations: 91.89 kB / 411.1 MB, free: 15.08 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.3326, allocations: 3.938 kB / 411.1 MB, free: 15.08 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.636e-06/0.3326, allocations: 4 kB / 411.1 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.077e-06/0.3326, allocations: 0 / 411.1 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.595e-05/0.3327, allocations: 15.98 kB / 411.1 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001436/0.3328, allocations: 161.6 kB / 411.3 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001164/0.333, allocations: 46.56 kB / 411.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.819e-05/0.333, allocations: 20.83 kB / 411.3 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.748e-05/0.333, allocations: 4 kB / 411.3 MB, free: 14.77 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.341e-05/0.3331, allocations: 42.59 kB / 411.4 MB, free: 14.72 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.91e-07/0.3331, allocations: 0 / 411.4 MB, free: 14.72 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001762/0.3333, allocations: 61.58 kB / 411.4 MB, free: 14.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.103e-05/0.3333, allocations: 55.41 kB / 411.5 MB, free: 14.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.955e-05/0.3334, allocations: 105.8 kB / 411.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.177e-05/0.3334, allocations: 25.7 kB / 411.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.887e-05/0.3335, allocations: 84.12 kB / 411.7 MB, free: 14.36 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.02e-05/0.3335, allocations: 8 kB / 411.7 MB, free: 14.35 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.947e-05/0.3335, allocations: 25.64 kB / 411.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.3336, allocations: 314.8 kB / 412.1 MB, free: 14 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.115e-05/0.3337, allocations: 3.938 kB / 412.1 MB, free: 14 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.518e-05/0.3337, allocations: 23.44 kB / 412.1 MB, free: 13.96 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.012e-05/0.3337, allocations: 43.36 kB / 412.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3337, allocations: 0 / 412.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.764e-05/0.3338, allocations: 49.64 kB / 412.2 MB, free: 13.85 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.3338, allocations: 14.91 kB / 412.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.3338, allocations: 3.984 kB / 412.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.3339, allocations: 0 / 412.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.29e-05/0.3339, allocations: 4.125 kB / 412.2 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.3339, allocations: 4 kB / 412.2 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.825e-05/0.3339, allocations: 4 kB / 412.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.256e-06/0.334, allocations: 4 kB / 412.2 MB, free: 13.82 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: 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 7.989e-05/0.334, allocations: 113.8 kB / 412.3 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.356e-05/0.3341, allocations: 61.58 kB / 412.4 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.685e-05/0.3342, allocations: 3.75 kB / 412.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.3342, allocations: 0 / 412.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.3342, allocations: 4 kB / 412.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.3342, allocations: 7.984 kB / 412.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.5e-05/0.3343, allocations: 153.7 kB / 412.5 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.3343, allocations: 0 / 412.5 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.999e-05/0.3343, allocations: 4 kB / 412.5 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.3343, allocations: 3.938 kB / 412.5 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.64e-06/0.3343, allocations: 3.938 kB / 412.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3344, allocations: 0 / 412.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.3344, allocations: 0 / 412.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001227/0.3345, allocations: 89.38 kB / 412.6 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.253e-05/0.3345, allocations: 85.05 kB / 412.7 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.781e-05/0.3346, allocations: 11.92 kB / 412.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.772e-05/0.3346, allocations: 0 / 412.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.119e-06/0.3346, allocations: 0 / 412.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-06/0.3346, allocations: 4 kB / 412.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.5e-05/0.3347, allocations: 83.27 kB / 412.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3347, allocations: 0 / 412.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001916/0.3349, allocations: 8 kB / 412.8 MB, free: 13.09 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: 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.0003834/0.3352, allocations: 0.6162 MB / 413.4 MB, free: 12.44 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 9.998e-05/0.3354, allocations: 23.98 kB / 413.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.3354, allocations: 0 / 413.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 1.833e-06/0.3354, allocations: 0 / 413.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002003/0.3356, allocations: 25.33 kB / 413.5 MB, free: 12.39 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008684/0.3365, allocations: 1.146 MB / 414.6 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002659/0.3367, allocations: 0.6807 MB / 415.3 MB, free: 10.44 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.27e-05/0.3368, allocations: 4 kB / 415.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.888e-05/0.3368, allocations: 11.38 kB / 415.3 MB, free: 10.42 MB / 334.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3368, allocations: 0 / 415.3 MB, free: 10.42 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01807/0.3549, allocations: 1.233 MB / 416.6 MB, free: 9.32 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.452/7.807, allocations: 19.41 kB / 416.6 MB, free: 9.305 MB / 334.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