Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.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.Sample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001431/0.001431, allocations: 121.2 kB / 17.78 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001733/0.001733, allocations: 200.6 kB / 18.73 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.463/1.463, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 59.91 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2616, allocations: 50.54 MB / 408.7 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.002833/0.2645, allocations: 1.522 MB / 410.3 MB, free: 28 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000451/0.265, allocations: 135.5 kB / 410.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.375e-05/0.2651, allocations: 4 kB / 410.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.604e-05/0.2651, allocations: 7.938 kB / 410.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001292/0.2653, allocations: 3.938 kB / 410.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002624/0.2655, allocations: 43.89 kB / 410.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001054/0.2656, allocations: 27.92 kB / 410.5 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000111/0.2658, allocations: 15.98 kB / 410.5 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.002e-05/0.2658, allocations: 11.94 kB / 410.5 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.285e-05/0.2659, allocations: 19.86 kB / 410.5 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.284e-05/0.2659, allocations: 4 kB / 410.5 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.104e-05/0.2659, allocations: 0 / 410.5 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.142e-05/0.266, allocations: 15.94 kB / 410.5 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.487e-05/0.266, allocations: 23.84 kB / 410.6 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001197/0.2661, allocations: 50.66 kB / 410.6 MB, free: 15.67 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.2661, allocations: 0 / 410.6 MB, free: 15.67 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2662, allocations: 0 / 410.6 MB, free: 15.67 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.2662, allocations: 0 / 410.6 MB, free: 15.67 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004846/0.2667, allocations: 367.2 kB / 411 MB, free: 15.26 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.2667, allocations: 12.03 kB / 411 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.977e-05/0.2667, allocations: 34.75 kB / 411 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.974e-05/0.2668, allocations: 16.89 kB / 411 MB, free: 15.19 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002566/0.267, allocations: 196.2 kB / 411.2 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.021e-06/0.2671, allocations: 4.312 kB / 411.2 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.399e-05/0.2671, allocations: 8.312 kB / 411.2 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002729/0.2674, allocations: 117.6 kB / 411.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.2674, allocations: 3.938 kB / 411.4 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.756e-06/0.2674, allocations: 0 / 411.4 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.2674, allocations: 0 / 411.4 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.322e-05/0.2675, allocations: 19.98 kB / 411.4 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003631/0.2678, allocations: 265.7 kB / 411.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002011/0.2681, allocations: 142.2 kB / 411.8 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.485e-05/0.2681, allocations: 33.7 kB / 411.8 MB, free: 14.26 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.633e-05/0.2682, allocations: 0 / 411.8 MB, free: 14.26 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.121e-05/0.2682, allocations: 30.56 kB / 411.8 MB, free: 14.22 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 2.675e-06/0.2682, allocations: 4 kB / 411.8 MB, free: 14.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.000246/0.2685, allocations: 81.5 kB / 411.9 MB, free: 14.13 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.546e-05/0.2685, allocations: 81.11 kB / 412 MB, free: 14.04 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001226/0.2687, allocations: 137 kB / 412.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.492e-05/0.2687, allocations: 25.7 kB / 412.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.071e-05/0.2688, allocations: 88.14 kB / 412.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.018e-05/0.2688, allocations: 4.078 kB / 412.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.413e-05/0.2688, allocations: 21.72 kB / 412.3 MB, free: 13.74 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.269, allocations: 318.8 kB / 412.6 MB, free: 13.42 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.974e-05/0.269, allocations: 8 kB / 412.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.918e-05/0.2691, allocations: 35.42 kB / 412.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.78e-05/0.2692, allocations: 51.36 kB / 412.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.2692, allocations: 3.938 kB / 412.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001199/0.2693, allocations: 65.55 kB / 412.7 MB, free: 13.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.2693, allocations: 10.81 kB / 412.8 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.2693, allocations: 4.125 kB / 412.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.2694, allocations: 0 / 412.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.248e-05/0.2694, allocations: 8 kB / 412.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.2694, allocations: 0 / 412.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.556e-05/0.2695, allocations: 11.94 kB / 412.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.568e-06/0.2695, allocations: 4 kB / 412.8 MB, free: 13.19 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: 4 (step.y,sample1.y,assignClock.y,assignClock.u) * 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 9.946e-05/0.2696, allocations: 117.8 kB / 412.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.23e-05/0.2697, allocations: 53.58 kB / 413 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.697e-05/0.2697, allocations: 12.25 kB / 413 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.2697, allocations: 4 kB / 413 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.2697, allocations: 3.938 kB / 413 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.2697, allocations: 0 / 413 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001785/0.2699, allocations: 173.6 kB / 413.1 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.2699, allocations: 0 / 413.1 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.986e-05/0.27, allocations: 12.31 kB / 413.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.27, allocations: 0 / 413.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.793e-06/0.27, allocations: 0 / 413.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.27, allocations: 4 kB / 413.2 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.27, allocations: 0 / 413.2 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000175/0.2702, allocations: 180.2 kB / 413.3 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.097e-05/0.2703, allocations: 93.03 kB / 413.4 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.343e-05/0.2703, allocations: 0 / 413.4 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.224e-05/0.2704, allocations: 4 kB / 413.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.531e-05/0.2704, allocations: 0 / 413.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.36e-06/0.2704, allocations: 4 kB / 413.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.249e-05/0.2705, allocations: 111.2 kB / 413.5 MB, free: 12.32 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2705, allocations: 0 / 413.5 MB, free: 12.32 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002209/0.2707, allocations: 8 kB / 413.5 MB, free: 12.31 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 (step.y,assignClock.u,assignClock.y,sample1.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.000434/0.2711, allocations: 0.7015 MB / 414.3 MB, free: 11.58 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001257/0.2713, allocations: 27.98 kB / 414.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2713, allocations: 0 / 414.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.406e-05/0.2713, allocations: 15.92 kB / 414.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003074/0.2716, allocations: 27.5 kB / 414.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001194/0.2728, allocations: 1.314 MB / 415.6 MB, free: 10.1 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003115/0.2732, allocations: 0.6924 MB / 416.3 MB, free: 9.379 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.621e-05/0.2732, allocations: 4 kB / 416.3 MB, free: 9.375 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.849e-05/0.2732, allocations: 15.44 kB / 416.3 MB, free: 9.359 MB / 334.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2732, allocations: 0 / 416.3 MB, free: 9.359 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01823/0.2915, allocations: 1.47 MB / 417.8 MB, free: 8.004 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.474/7.766, allocations: 0 / 417.8 MB, free: 8.004 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample1/Sample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock.y,sample1.y Variables in the result:time,step.startTime,assignClock.u,assignClock.y,sample1.y,step.y