Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001437/0.001437, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001487/0.001487, allocations: 210.7 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.438/1.438, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002518/0.002518, allocations: 55.92 kB / 377.7 MB, free: 2.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3433/0.3458, allocations: 53.36 MB / 431.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.002875/0.3487, allocations: 1.526 MB / 432.6 MB, free: 5.098 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003894/0.3491, allocations: 143.4 kB / 432.7 MB, free: 4.957 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.863e-05/0.3492, allocations: 0 / 432.7 MB, free: 4.957 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.441e-05/0.3492, allocations: 3.938 kB / 432.7 MB, free: 4.953 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001187/0.3493, allocations: 7.922 kB / 432.8 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002336/0.3496, allocations: 35.91 kB / 432.8 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.485e-05/0.3497, allocations: 27.92 kB / 432.8 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.922e-05/0.3498, allocations: 8 kB / 432.8 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.209e-05/0.3498, allocations: 11.92 kB / 432.8 MB, free: 4.863 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.348e-05/0.3498, allocations: 15.94 kB / 432.8 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.434e-05/0.3498, allocations: 0 / 432.8 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.177e-05/0.3499, allocations: 4 kB / 432.9 MB, free: 4.844 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.562e-05/0.3499, allocations: 11.92 kB / 432.9 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.887e-05/0.3499, allocations: 19.86 kB / 432.9 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001151/0.3501, allocations: 45.39 kB / 432.9 MB, free: 4.77 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.3501, allocations: 0 / 432.9 MB, free: 4.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3501, allocations: 0 / 432.9 MB, free: 4.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.97e-06/0.3501, allocations: 4 kB / 432.9 MB, free: 4.766 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004406/0.3505, allocations: 282.1 kB / 433.2 MB, free: 4.457 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.3505, allocations: 12.03 kB / 433.2 MB, free: 4.445 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.625e-05/0.3506, allocations: 34.75 kB / 433.3 MB, free: 4.402 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.613e-05/0.3506, allocations: 8.891 kB / 433.3 MB, free: 4.395 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002319/0.3508, allocations: 133.1 kB / 433.4 MB, free: 4.242 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.045e-06/0.3508, allocations: 4.375 kB / 433.4 MB, free: 4.238 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.073e-05/0.3509, allocations: 4.312 kB / 433.4 MB, free: 4.234 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002468/0.3511, allocations: 101.6 kB / 433.5 MB, free: 4.117 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.3511, allocations: 3.938 kB / 433.5 MB, free: 4.113 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.154e-06/0.3511, allocations: 4 kB / 433.5 MB, free: 4.109 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.3511, allocations: 3.984 kB / 433.5 MB, free: 4.105 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.511e-05/0.3512, allocations: 11.94 kB / 433.5 MB, free: 4.094 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003146/0.3515, allocations: 228.9 kB / 433.7 MB, free: 3.824 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.87e-05/0.3516, allocations: 49.08 kB / 433.8 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.642e-05/0.3516, allocations: 17.78 kB / 433.8 MB, free: 3.734 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.513e-05/0.3517, allocations: 4 kB / 433.8 MB, free: 3.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.427e-05/0.3517, allocations: 34.55 kB / 433.8 MB, free: 3.688 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.172e-06/0.3517, allocations: 4 kB / 433.9 MB, free: 3.684 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.00022/0.3519, allocations: 57.62 kB / 433.9 MB, free: 3.621 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.202e-05/0.352, allocations: 77.11 kB / 434 MB, free: 3.527 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001276/0.3521, allocations: 142 kB / 434.1 MB, free: 3.375 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.049e-05/0.3521, allocations: 25.7 kB / 434.1 MB, free: 3.344 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.76e-05/0.3522, allocations: 88.14 kB / 434.2 MB, free: 3.254 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.093e-06/0.3522, allocations: 0 / 434.2 MB, free: 3.254 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.46e-05/0.3522, allocations: 21.66 kB / 434.3 MB, free: 3.227 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.3524, allocations: 311.1 kB / 434.6 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.629e-05/0.3524, allocations: 15.92 kB / 434.6 MB, free: 2.898 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.262e-05/0.3524, allocations: 21.72 kB / 434.6 MB, free: 2.871 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.474e-05/0.3525, allocations: 21.7 kB / 434.6 MB, free: 2.844 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.3525, allocations: 3.938 kB / 434.6 MB, free: 2.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001083/0.3526, allocations: 61.56 kB / 434.7 MB, free: 2.773 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.3526, allocations: 4.125 kB / 434.7 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.3526, allocations: 8 kB / 434.7 MB, free: 2.762 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.3526, allocations: 0 / 434.7 MB, free: 2.762 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.106e-05/0.3527, allocations: 4 kB / 434.7 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.3527, allocations: 0 / 434.7 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.636e-05/0.3527, allocations: 4 kB / 434.7 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.39e-06/0.3527, allocations: 0 / 434.7 MB, free: 2.754 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (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 prepare postOptimizeDAE: time 0.0001026/0.3528, allocations: 121.8 kB / 434.8 MB, free: 2.625 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.788e-05/0.3529, allocations: 45.58 kB / 434.9 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.853e-05/0.3529, allocations: 23.69 kB / 434.9 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.353, allocations: 4.031 kB / 434.9 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.353, allocations: 0 / 434.9 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.353, allocations: 0 / 434.9 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002012/0.3532, allocations: 140.6 kB / 435 MB, free: 2.367 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.3532, allocations: 4 kB / 435 MB, free: 2.363 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.52e-05/0.3532, allocations: 4 kB / 435 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3532, allocations: 0 / 435 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.3532, allocations: 0 / 435 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.3532, allocations: 3.984 kB / 435 MB, free: 2.355 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.3532, allocations: 0 / 435 MB, free: 2.355 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001898/0.3534, allocations: 164.3 kB / 435.2 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.618e-05/0.3534, allocations: 15.94 kB / 435.2 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/0.3535, allocations: 4 kB / 435.2 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.342e-05/0.3535, allocations: 0 / 435.2 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.37e-05/0.3535, allocations: 0 / 435.2 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.091e-06/0.3535, allocations: 4 kB / 435.2 MB, free: 2.152 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.256e-05/0.3536, allocations: 106.5 kB / 435.3 MB, free: 2.051 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3536, allocations: 4 kB / 435.3 MB, free: 2.047 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002117/0.3538, allocations: 0 / 435.3 MB, free: 2.047 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: 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.0005765/0.3544, allocations: 0.6898 MB / 436 MB, free: 1.328 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001291/0.3545, allocations: 19.92 kB / 436 MB, free: 1.309 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3545, allocations: 0 / 436 MB, free: 1.309 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.071e-05/0.3546, allocations: 15.98 kB / 436.1 MB, free: 1.293 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003467/0.3549, allocations: 14.02 kB / 436.1 MB, free: 1.281 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001523/0.3565, allocations: 1.276 MB / 437.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.27e-05/0.3566, allocations: 67.34 kB / 437.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.019e-05/0.3566, allocations: 3.984 kB / 437.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.581e-05/0.3566, allocations: 7.438 kB / 437.4 MB, free: 15.81 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3566, allocations: 0 / 437.4 MB, free: 15.81 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03042/0.387, allocations: 1.915 MB / 439.3 MB, free: 14.03 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.28, allocations: 7.047 kB / 439.3 MB, free: 14.03 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 13.817552434746176]