Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008186/0.0008186, allocations: 88.33 kB / 20.67 MB, free: 3.875 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007784/0.0007784, allocations: 160.9 kB / 23.95 MB, free: 0.5977 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9374/0.9374, allocations: 177 MB / 204.1 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.SampleClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.228e-05/1.366e-05, allocations: 3.266 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.001706/0.00172, allocations: 1.529 MB / 326 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002894/0.002009, allocations: 135.5 kB / 326.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.788e-05/0.002077, allocations: 4 kB / 326.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.718e-05/0.002114, allocations: 7.875 kB / 326.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001221/0.002236, allocations: 11.91 kB / 326.2 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001901/0.002426, allocations: 27.92 kB / 326.2 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.098e-05/0.002507, allocations: 35.84 kB / 326.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.984e-05/0.002587, allocations: 7.938 kB / 326.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.803e-05/0.002625, allocations: 11.98 kB / 326.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.78e-05/0.002663, allocations: 19.92 kB / 326.3 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.085e-05/0.002684, allocations: 0 / 326.3 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.506e-06/0.002692, allocations: 4 kB / 326.3 MB, free: 14.08 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.877e-05/0.002731, allocations: 8 kB / 326.3 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.102e-05/0.002752, allocations: 11.92 kB / 326.3 MB, free: 14.06 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.822e-05/0.00284, allocations: 31.89 kB / 326.3 MB, free: 14.03 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.794e-06/0.002842, allocations: 4 kB / 326.4 MB, free: 14.03 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.002843, allocations: 0 / 326.4 MB, free: 14.03 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.457e-06/0.002847, allocations: 0 / 326.4 MB, free: 14.03 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003347/0.003181, allocations: 290 kB / 326.6 MB, free: 13.71 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.003215, allocations: 19.98 kB / 326.7 MB, free: 13.69 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.631e-05/0.003241, allocations: 30.75 kB / 326.7 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.998e-05/0.003261, allocations: 8.891 kB / 326.7 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001551/0.003417, allocations: 134.2 kB / 326.8 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.566e-06/0.003425, allocations: 4.375 kB / 326.8 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.572e-06/0.003432, allocations: 384 / 326.8 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001696/0.003601, allocations: 93.61 kB / 326.9 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.003608, allocations: 4.188 kB / 326.9 MB, free: 13.37 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.224e-06/0.003615, allocations: 384 / 326.9 MB, free: 13.37 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.003621, allocations: 8.062 kB / 326.9 MB, free: 13.36 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.662e-05/0.003657, allocations: 15.98 kB / 326.9 MB, free: 13.35 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002343/0.003892, allocations: 228.8 kB / 327.2 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.079e-05/0.003942, allocations: 37.22 kB / 327.2 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.015e-05/0.003973, allocations: 25.7 kB / 327.2 MB, free: 12.99 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.774e-05/0.00399, allocations: 4 kB / 327.2 MB, free: 12.99 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.877e-05/0.004009, allocations: 34.5 kB / 327.3 MB, free: 12.95 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.00401, allocations: 4 kB / 327.3 MB, free: 12.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.00015/0.00416, allocations: 61.61 kB / 327.3 MB, free: 12.88 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.058e-05/0.0042, allocations: 77.11 kB / 327.4 MB, free: 12.78 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.291e-05/0.004293, allocations: 141 kB / 327.5 MB, free: 12.63 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.578e-06/0.004303, allocations: 25.7 kB / 327.6 MB, free: 12.6 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.702e-05/0.00435, allocations: 88.14 kB / 327.7 MB, free: 12.51 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.554e-06/0.004358, allocations: 3.938 kB / 327.7 MB, free: 12.51 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.371e-05/0.004381, allocations: 17.72 kB / 327.7 MB, free: 12.48 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.684e-05/0.004458, allocations: 319.1 kB / 328 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.732e-05/0.004475, allocations: 4 kB / 328 MB, free: 12.16 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.32e-05/0.004489, allocations: 7.984 kB / 328 MB, free: 12.15 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.61e-05/0.004525, allocations: 24.8 kB / 328 MB, free: 12.12 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.004527, allocations: 0 / 328 MB, free: 12.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.284e-05/0.00458, allocations: 49.58 kB / 328.1 MB, free: 12.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.004591, allocations: 7.984 kB / 328.1 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.004595, allocations: 4.094 kB / 328.1 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.004608, allocations: 7.984 kB / 328.1 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.409e-05/0.004652, allocations: 0 / 328.1 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.004657, allocations: 0 / 328.1 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.374e-05/0.004671, allocations: 4 kB / 328.1 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.729e-06/0.004675, allocations: 0 / 328.1 MB, free: 12.05 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (step.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 5.711e-05/0.004732, allocations: 117.8 kB / 328.2 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.218e-05/0.004765, allocations: 45.53 kB / 328.3 MB, free: 11.87 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.966e-05/0.004784, allocations: 11.77 kB / 328.3 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-06/0.004786, allocations: 4 kB / 328.3 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.004789, allocations: 4.031 kB / 328.3 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.004794, allocations: 3.984 kB / 328.3 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001059/0.0049, allocations: 132.7 kB / 328.4 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.004901, allocations: 0 / 328.4 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.762e-05/0.004919, allocations: 12 kB / 328.4 MB, free: 11.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.004922, allocations: 3.938 kB / 328.4 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.249e-06/0.004927, allocations: 0 / 328.4 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.004928, allocations: 0 / 328.4 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.004929, allocations: 0 / 328.4 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.625e-05/0.005015, allocations: 156.4 kB / 328.6 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.238e-05/0.005037, allocations: 19.81 kB / 328.6 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.929e-06/0.005047, allocations: 4 kB / 328.6 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.75e-05/0.005075, allocations: 0 / 328.6 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.502e-05/0.0051, allocations: 4 kB / 328.6 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.499e-06/0.005104, allocations: 4 kB / 328.6 MB, free: 11.46 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.948e-05/0.005144, allocations: 99.25 kB / 328.7 MB, free: 11.36 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.005144, allocations: 0 / 328.7 MB, free: 11.36 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001359/0.00528, allocations: 4 kB / 328.7 MB, free: 11.36 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0002378/0.005517, allocations: 0.6898 MB / 329.4 MB, free: 10.64 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.534e-05/0.005593, allocations: 23.92 kB / 329.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.193e-06/0.005594, allocations: 0 / 329.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.612e-05/0.00561, allocations: 7.984 kB / 329.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002213/0.005831, allocations: 15.97 kB / 329.5 MB, free: 10.59 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007806/0.006612, allocations: 1.249 MB / 330.7 MB, free: 9.258 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.96e-05/0.006662, allocations: 75.58 kB / 330.8 MB, free: 9.164 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.469e-05/0.006676, allocations: 0 / 330.8 MB, free: 9.164 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.248e-05/0.006709, allocations: 16.5 kB / 330.8 MB, free: 9.148 MB / 298.7 MB Notification: Performance of SimCode: time 7.52e-07/0.00671, allocations: 0 / 330.8 MB, free: 9.148 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01458/0.02129, allocations: 2.036 MB / 332.8 MB, free: 7.207 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.78/6.801, allocations: 7.031 kB / 332.8 MB, free: 7.203 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.99122e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y Variables in the result:time,step.startTime,sample1.y,step.y,periodicClock.factor,periodicClock.resolution [Calling sys.exit(0), Time elapsed: 8.643272507935762]