Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001243/0.001243, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001432/0.001432, allocations: 202 kB / 18.74 MB, free: 4.332 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.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002782/0.002782, allocations: 63.89 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2957, allocations: 50.53 MB / 408.8 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.002765/0.2986, allocations: 1.439 MB / 410.2 MB, free: 128 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002796/0.2989, allocations: 103.7 kB / 410.3 MB, free: 24 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.215e-05/0.2989, allocations: 0 / 410.3 MB, free: 24 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.779e-05/0.299, allocations: 0 / 410.3 MB, free: 24 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.159e-05/0.299, allocations: 7.938 kB / 410.3 MB, free: 16 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002413/0.2993, allocations: 23.97 kB / 410.3 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.902e-05/0.2994, allocations: 27.86 kB / 410.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.781e-05/0.2995, allocations: 11.94 kB / 410.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.807e-05/0.2995, allocations: 11.94 kB / 410.4 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.063e-05/0.2996, allocations: 11.92 kB / 410.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.161e-05/0.2996, allocations: 4 kB / 410.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.812e-06/0.2996, allocations: 0 / 410.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.679e-05/0.2996, allocations: 7.938 kB / 410.4 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.789e-05/0.2996, allocations: 15.94 kB / 410.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 8.886e-05/0.2997, allocations: 27.88 kB / 410.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.2997, allocations: 0 / 410.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2998, allocations: 0 / 410.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.165e-06/0.2998, allocations: 0 / 410.4 MB, free: 15.88 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.000443/0.3002, allocations: 342.4 kB / 410.8 MB, free: 15.49 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.3003, allocations: 8.031 kB / 410.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.499e-05/0.3003, allocations: 30.75 kB / 410.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.598e-05/0.3003, allocations: 8.891 kB / 410.8 MB, free: 15.44 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002341/0.3006, allocations: 188.2 kB / 411 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.329e-05/0.3006, allocations: 8.375 kB / 411 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.174e-05/0.3006, allocations: 384 / 411 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003094/0.3009, allocations: 103.9 kB / 411.1 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.3009, allocations: 3.938 kB / 411.1 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.943e-06/0.301, allocations: 7.938 kB / 411.1 MB, free: 15.08 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.301, allocations: 0 / 411.1 MB, free: 15.08 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.267e-05/0.3011, allocations: 19.98 kB / 411.1 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000153/0.3012, allocations: 161.6 kB / 411.3 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001495/0.3014, allocations: 54.53 kB / 411.4 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.615e-05/0.3014, allocations: 20.89 kB / 411.4 MB, free: 14.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.161e-05/0.3015, allocations: 8 kB / 411.4 MB, free: 14.76 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.659e-05/0.3015, allocations: 30.56 kB / 411.4 MB, free: 14.72 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.3015, allocations: 0 / 411.4 MB, free: 14.72 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002244/0.3017, allocations: 77.58 kB / 411.5 MB, free: 14.64 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/0.3018, allocations: 55.41 kB / 411.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.407e-05/0.3019, allocations: 105.8 kB / 411.6 MB, free: 14.46 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.787e-05/0.3019, allocations: 33.7 kB / 411.7 MB, free: 14.42 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.909e-05/0.302, allocations: 88.12 kB / 411.8 MB, free: 14.33 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.811e-06/0.302, allocations: 0 / 411.8 MB, free: 14.33 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.187e-05/0.302, allocations: 17.72 kB / 411.8 MB, free: 14.31 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.3021, allocations: 314.8 kB / 412.1 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.436e-05/0.3022, allocations: 7.984 kB / 412.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.81e-05/0.3022, allocations: 23.44 kB / 412.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.772e-05/0.3022, allocations: 35.38 kB / 412.2 MB, free: 13.9 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3023, allocations: 4 kB / 412.2 MB, free: 13.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.51e-05/0.3023, allocations: 61.52 kB / 412.2 MB, free: 13.83 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.3024, allocations: 10.59 kB / 412.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.3024, allocations: 4.125 kB / 412.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.3024, allocations: 4 kB / 412.2 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.69e-05/0.3024, allocations: 4 kB / 412.2 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.3025, allocations: 3.938 kB / 412.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.198e-05/0.3025, allocations: 7.984 kB / 412.3 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.833e-05/0.3025, allocations: 4 kB / 412.3 MB, free: 13.79 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 8.58e-05/0.3026, allocations: 109.8 kB / 412.4 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001091/0.3027, allocations: 57.62 kB / 412.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.061e-05/0.3028, allocations: 11.91 kB / 412.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.3028, allocations: 0 / 412.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.3028, allocations: 0 / 412.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.3028, allocations: 3.984 kB / 412.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000119/0.3029, allocations: 153.7 kB / 412.6 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/0.3029, allocations: 3.938 kB / 412.6 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.979e-05/0.303, allocations: 8.25 kB / 412.6 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.033e-06/0.303, allocations: 3.938 kB / 412.6 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-06/0.303, allocations: 11.92 kB / 412.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.303, allocations: 0 / 412.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.303, allocations: 0 / 412.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001369/0.3031, allocations: 85.08 kB / 412.7 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.297e-05/0.3032, allocations: 89.03 kB / 412.8 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.43e-05/0.3032, allocations: 7.938 kB / 412.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.236e-05/0.3033, allocations: 0 / 412.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.759e-06/0.3033, allocations: 4 kB / 412.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.125e-06/0.3033, allocations: 0 / 412.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.176e-05/0.3033, allocations: 87.27 kB / 412.9 MB, free: 13.05 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3033, allocations: 0 / 412.9 MB, free: 13.05 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001845/0.3035, allocations: 8 kB / 412.9 MB, free: 13.05 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.0004443/0.304, allocations: 0.6201 MB / 413.5 MB, free: 12.4 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001131/0.3041, allocations: 31.92 kB / 413.5 MB, free: 12.37 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3041, allocations: 0 / 413.5 MB, free: 12.37 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.01e-07/0.3041, allocations: 0 / 413.5 MB, free: 12.37 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002014/0.3043, allocations: 16.52 kB / 413.6 MB, free: 12.35 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001069/0.3054, allocations: 1.162 MB / 414.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003221/0.3057, allocations: 0.6806 MB / 415.4 MB, free: 10.38 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.586e-05/0.3057, allocations: 4 kB / 415.4 MB, free: 10.38 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.167e-05/0.3058, allocations: 15.42 kB / 415.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3058, allocations: 0 / 415.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0207/0.3265, allocations: 1.236 MB / 416.7 MB, free: 9.262 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.815/8.141, allocations: 7.859 kB / 416.7 MB, free: 9.254 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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