Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.001521/0.001521, allocations: 118.8 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.001534/0.001534, allocations: 197.2 kB / 18.73 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.43/1.43, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 63.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2925/0.2939, allocations: 50.54 MB / 408.7 MB, free: 1.699 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.003511/0.2975, allocations: 1.435 MB / 410.2 MB, free: 272 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002051/0.2977, allocations: 35.84 kB / 410.2 MB, free: 236 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.992e-05/0.2978, allocations: 0 / 410.2 MB, free: 236 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.361e-05/0.2978, allocations: 3.938 kB / 410.2 MB, free: 232 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.236e-05/0.2979, allocations: 4 kB / 410.2 MB, free: 228 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002744/0.2982, allocations: 23.92 kB / 410.2 MB, free: 204 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.319e-05/0.2983, allocations: 27.97 kB / 410.3 MB, free: 176 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.2984, allocations: 11.98 kB / 410.3 MB, free: 164 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.327e-05/0.2984, allocations: 11.94 kB / 410.3 MB, free: 152 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.991e-05/0.2985, allocations: 15.92 kB / 410.3 MB, free: 136 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.81e-05/0.2985, allocations: 4 kB / 410.3 MB, free: 132 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.758e-06/0.2985, allocations: 0 / 410.3 MB, free: 132 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.186e-05/0.2986, allocations: 4 kB / 410.3 MB, free: 128 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.484e-05/0.2986, allocations: 23.86 kB / 410.3 MB, free: 104 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001941/0.2988, allocations: 31.83 kB / 410.4 MB, free: 72 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2988, allocations: 0 / 410.4 MB, free: 72 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2988, allocations: 0 / 410.4 MB, free: 72 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.089e-05/0.2989, allocations: 0 / 410.4 MB, free: 72 kB / 318.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.0005489/0.2994, allocations: 343.4 kB / 410.7 MB, free: 15.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.613e-05/0.2995, allocations: 12.03 kB / 410.7 MB, free: 15.67 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.022e-05/0.2995, allocations: 38.75 kB / 410.8 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.751e-05/0.2996, allocations: 8.891 kB / 410.8 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002956/0.2999, allocations: 176.4 kB / 410.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.482e-05/0.2999, allocations: 384 / 410.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.296e-05/0.2999, allocations: 4.375 kB / 410.9 MB, free: 15.4 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004083/0.3003, allocations: 127.8 kB / 411.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.3004, allocations: 3.938 kB / 411.1 MB, free: 15.26 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.876e-06/0.3004, allocations: 3.938 kB / 411.1 MB, free: 15.26 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.93e-06/0.3004, allocations: 0 / 411.1 MB, free: 15.26 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001216/0.3005, allocations: 35.91 kB / 411.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001544/0.3007, allocations: 161.6 kB / 411.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001679/0.3009, allocations: 54.58 kB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.745e-05/0.3009, allocations: 24.89 kB / 411.3 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.206e-05/0.301, allocations: 0 / 411.3 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.52e-05/0.301, allocations: 42.47 kB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.301, allocations: 4 kB / 411.4 MB, free: 14.87 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003031/0.3013, allocations: 81.59 kB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.049e-05/0.3014, allocations: 59.41 kB / 411.5 MB, free: 14.71 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.064e-05/0.3015, allocations: 97.86 kB / 411.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.917e-05/0.3015, allocations: 33.69 kB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.145e-05/0.3015, allocations: 84.14 kB / 411.7 MB, free: 14.48 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.718e-05/0.3016, allocations: 0 / 411.7 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.126e-05/0.3016, allocations: 17.72 kB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.3017, allocations: 318.8 kB / 412.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.555e-05/0.3018, allocations: 4 kB / 412.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.384e-05/0.3018, allocations: 35.38 kB / 412.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.768e-05/0.3019, allocations: 35.38 kB / 412.1 MB, free: 14.04 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.3019, allocations: 4 kB / 412.1 MB, free: 14.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.98e-05/0.302, allocations: 61.58 kB / 412.2 MB, free: 13.97 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.585e-05/0.302, allocations: 11.94 kB / 412.2 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.302, allocations: 0 / 412.2 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.302, allocations: 0 / 412.2 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.51e-05/0.3021, allocations: 11.98 kB / 412.2 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.373e-06/0.3021, allocations: 0 / 412.2 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.21e-05/0.3021, allocations: 4.125 kB / 412.2 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.108e-06/0.3022, allocations: 4 kB / 412.2 MB, free: 13.94 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 9.442e-05/0.3023, allocations: 121.7 kB / 412.4 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001609/0.3024, allocations: 73.5 kB / 412.4 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.487e-05/0.3025, allocations: 7.906 kB / 412.4 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.3025, allocations: 384 / 412.4 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3025, allocations: 0 / 412.4 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.3025, allocations: 3.984 kB / 412.4 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001009/0.3026, allocations: 157.7 kB / 412.6 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.642e-06/0.3026, allocations: 4 kB / 412.6 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.14e-05/0.3027, allocations: 11.98 kB / 412.6 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.732e-06/0.3027, allocations: 7.938 kB / 412.6 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.802e-06/0.3027, allocations: 0 / 412.6 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.3027, allocations: 3.938 kB / 412.6 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3027, allocations: 0 / 412.6 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000186/0.3029, allocations: 89.05 kB / 412.7 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.035e-05/0.303, allocations: 85.05 kB / 412.8 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.527e-05/0.303, allocations: 11.94 kB / 412.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.128e-05/0.303, allocations: 4 kB / 412.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.929e-06/0.303, allocations: 4 kB / 412.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.699e-06/0.3031, allocations: 0 / 412.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.34e-05/0.3031, allocations: 83.27 kB / 412.9 MB, free: 13.17 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3031, allocations: 0 / 412.9 MB, free: 13.17 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001968/0.3033, allocations: 8 kB / 412.9 MB, free: 13.16 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.0005831/0.3039, allocations: 0.6436 MB / 413.5 MB, free: 12.49 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001514/0.3041, allocations: 36.3 kB / 413.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3041, allocations: 0 / 413.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.61e-07/0.3041, allocations: 0 / 413.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003199/0.3044, allocations: 31.94 kB / 413.6 MB, free: 12.42 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001041/0.3055, allocations: 1.178 MB / 414.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002488/0.3057, allocations: 0.6807 MB / 415.5 MB, free: 10.44 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.475e-05/0.3058, allocations: 0 / 415.5 MB, free: 10.44 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.558e-05/0.3058, allocations: 19.42 kB / 415.5 MB, free: 10.42 MB / 334.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3058, allocations: 0 / 415.5 MB, free: 10.42 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01711/0.3229, allocations: 1.373 MB / 416.9 MB, free: 9.184 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.581/7.904, allocations: 9.297 kB / 416.9 MB, free: 9.176 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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_IntegerSignals_TickBasedStep.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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,assignClock1.u,assignClock1.y,step.counter,step.y