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.00159/0.00159, 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.00197/0.00197, allocations: 199.9 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.468/1.468, allocations: 227.4 MB / 246.9 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 63.91 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2734/0.2747, allocations: 50.53 MB / 408.7 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.002439/0.2771, allocations: 1.448 MB / 410.2 MB, free: 104 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002683/0.2774, allocations: 95.72 kB / 410.3 MB, free: 8 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.51e-05/0.2775, allocations: 4 kB / 410.3 MB, free: 4 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.597e-05/0.2775, allocations: 3.938 kB / 410.3 MB, free: 0 / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.962e-05/0.2776, allocations: 7.984 kB / 410.3 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002283/0.2778, allocations: 27.91 kB / 410.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.716e-05/0.2779, allocations: 19.92 kB / 410.4 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.888e-05/0.278, allocations: 8 kB / 410.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.889e-05/0.2781, allocations: 11.94 kB / 410.4 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.295e-05/0.2781, allocations: 11.92 kB / 410.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.755e-05/0.2781, allocations: 4 kB / 410.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.655e-06/0.2781, allocations: 0 / 410.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.226e-05/0.2782, allocations: 11.94 kB / 410.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.872e-05/0.2782, allocations: 7.938 kB / 410.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 8.438e-05/0.2783, allocations: 35.88 kB / 410.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.2783, allocations: 0 / 410.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2783, allocations: 0 / 410.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.2783, 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.0004081/0.2787, allocations: 342.4 kB / 410.8 MB, free: 15.47 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.2788, allocations: 8.031 kB / 410.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.595e-05/0.2788, allocations: 30.75 kB / 410.8 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.398e-05/0.2788, allocations: 8.891 kB / 410.8 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001937/0.279, allocations: 184.3 kB / 411 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.044e-05/0.2791, allocations: 384 / 411 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.796e-06/0.2791, allocations: 8.312 kB / 411 MB, free: 15.19 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002903/0.2794, allocations: 111.8 kB / 411.1 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.156e-06/0.2794, allocations: 3.938 kB / 411.1 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.097e-06/0.2794, allocations: 0 / 411.1 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.2794, allocations: 11.88 kB / 411.1 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.758e-05/0.2795, allocations: 19.98 kB / 411.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001287/0.2796, allocations: 161.6 kB / 411.3 MB, free: 14.82 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001502/0.2798, allocations: 46.56 kB / 411.4 MB, free: 14.77 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.817e-05/0.2799, allocations: 24.92 kB / 411.4 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.065e-05/0.2799, allocations: 7.938 kB / 411.4 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.287e-05/0.2799, allocations: 34.56 kB / 411.4 MB, free: 14.69 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.2799, allocations: 0 / 411.4 MB, free: 14.69 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002192/0.2801, allocations: 73.59 kB / 411.5 MB, free: 14.61 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.795e-05/0.2802, allocations: 51.41 kB / 411.5 MB, free: 14.55 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.016e-05/0.2803, allocations: 105.9 kB / 411.6 MB, free: 14.44 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.405e-05/0.2803, allocations: 29.7 kB / 411.7 MB, free: 14.4 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.693e-05/0.2803, allocations: 92.12 kB / 411.8 MB, free: 14.31 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.131e-06/0.2804, allocations: 0 / 411.8 MB, free: 14.31 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.875e-05/0.2804, allocations: 17.72 kB / 411.8 MB, free: 14.29 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.2805, allocations: 310.8 kB / 412.1 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.884e-05/0.2805, allocations: 15.92 kB / 412.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.479e-05/0.2805, allocations: 27.47 kB / 412.1 MB, free: 13.92 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.035e-05/0.2806, allocations: 35.38 kB / 412.2 MB, free: 13.87 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2806, allocations: 0 / 412.2 MB, free: 13.87 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.933e-05/0.2807, allocations: 57.58 kB / 412.2 MB, free: 13.81 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.2807, allocations: 11.94 kB / 412.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.2807, allocations: 128 / 412.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.2807, allocations: 4 kB / 412.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.088e-05/0.2808, allocations: 8 kB / 412.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.629e-05/0.2808, allocations: 0 / 412.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.159e-05/0.2808, allocations: 4.234 kB / 412.2 MB, free: 13.78 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.587e-06/0.2809, allocations: 4 kB / 412.3 MB, free: 13.78 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.15e-05/0.2809, allocations: 125.7 kB / 412.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001071/0.281, allocations: 57.62 kB / 412.4 MB, free: 13.58 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.042e-05/0.2811, allocations: 3.906 kB / 412.4 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.2811, allocations: 8 kB / 412.4 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.2811, allocations: 0 / 412.4 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.2811, allocations: 3.984 kB / 412.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.426e-05/0.2812, allocations: 153.7 kB / 412.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.2812, allocations: 0 / 412.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.884e-05/0.2813, allocations: 11.94 kB / 412.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.2813, allocations: 3.938 kB / 412.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.653e-06/0.2813, allocations: 3.984 kB / 412.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.2813, allocations: 0 / 412.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.2813, allocations: 0 / 412.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001279/0.2814, allocations: 89.02 kB / 412.7 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.624e-05/0.2815, allocations: 88.97 kB / 412.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.502e-05/0.2815, allocations: 7.938 kB / 412.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.564e-05/0.2815, allocations: 4 kB / 412.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.234e-06/0.2815, allocations: 0 / 412.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-06/0.2815, allocations: 4 kB / 412.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.811e-05/0.2816, allocations: 83.27 kB / 412.9 MB, free: 13.03 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2816, allocations: 4 kB / 412.9 MB, free: 13.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001844/0.2818, allocations: 8 kB / 412.9 MB, free: 13.02 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.0003971/0.2822, allocations: 0.6201 MB / 413.5 MB, free: 12.37 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001154/0.2823, allocations: 28.17 kB / 413.5 MB, free: 12.34 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.2823, allocations: 0 / 413.5 MB, free: 12.34 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.4e-07/0.2823, allocations: 0 / 413.5 MB, free: 12.34 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002101/0.2825, allocations: 19.94 kB / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008643/0.2834, allocations: 1.147 MB / 414.7 MB, free: 11.07 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002335/0.2837, allocations: 0.6807 MB / 415.4 MB, free: 10.37 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.672e-05/0.2837, allocations: 0 / 415.4 MB, free: 10.37 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.514e-05/0.2837, allocations: 23.36 kB / 415.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2837, allocations: 0 / 415.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01768/0.3014, allocations: 1.246 MB / 416.7 MB, free: 9.234 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.525/7.827, allocations: 10.42 kB / 416.7 MB, free: 9.227 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.0.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