Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.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.001192/0.001192, allocations: 87.69 kB / 20.67 MB, free: 3.883 MB / 18.57 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.001573/0.001573, allocations: 165.3 kB / 23.95 MB, free: 0.6055 MB / 18.57 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 0.9073/0.9073, allocations: 177.1 MB / 204.3 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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.ClockSignals.RotationalSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.47e-05/1.619e-05, allocations: 2.281 kB / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.00255/0.002566, allocations: 1.961 MB / 326.5 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001487/0.004053, allocations: 0.662 MB / 327.2 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001155/0.004168, allocations: 8 kB / 327.2 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 5.175e-05/0.00422, allocations: 23.72 kB / 327.2 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001183/0.004338, allocations: 27.73 kB / 327.2 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004552/0.004794, allocations: 123.5 kB / 327.4 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002152/0.005009, allocations: 216 kB / 327.6 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001598/0.005169, allocations: 60.89 kB / 327.6 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002352/0.005404, allocations: 127.7 kB / 327.8 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.468e-05/0.005499, allocations: 75.77 kB / 327.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.746e-05/0.005526, allocations: 20 kB / 327.8 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.788e-05/0.005574, allocations: 24 kB / 327.9 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.416e-05/0.005608, allocations: 43.83 kB / 327.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.504e-05/0.005663, allocations: 55.83 kB / 328 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002462/0.005909, allocations: 243.2 kB / 328.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.005913, allocations: 0 / 328.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.005915, allocations: 0 / 328.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.201e-06/0.005921, allocations: 0 / 328.2 MB, free: 12.3 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0006437/0.006565, allocations: 472.1 kB / 328.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.006608, allocations: 8.031 kB / 328.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.135e-05/0.00665, allocations: 54.73 kB / 328.7 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001404/0.00679, allocations: 32.78 kB / 328.8 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002616/0.007052, allocations: 182 kB / 328.9 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.352e-05/0.007125, allocations: 64.3 kB / 329 MB, free: 11.41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.416e-05/0.007149, allocations: 20.38 kB / 329 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005166/0.007666, allocations: 359.7 kB / 329.4 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.007676, allocations: 3.938 kB / 329.4 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.831e-05/0.007694, allocations: 8 kB / 329.4 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.0077, allocations: 4 kB / 329.4 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002386/0.007939, allocations: 131.9 kB / 329.5 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004878/0.008427, allocations: 392.5 kB / 329.9 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003005/0.008727, allocations: 193 kB / 330.1 MB, free: 10.24 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000136/0.008863, allocations: 97.66 kB / 330.2 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.945e-05/0.008883, allocations: 4 kB / 330.2 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002005/0.009083, allocations: 145.2 kB / 330.3 MB, free: 9.977 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 2.084e-06/0.009085, allocations: 0 / 330.3 MB, free: 9.977 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004966/0.009582, allocations: 289.2 kB / 330.6 MB, free: 9.688 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.906e-05/0.009641, allocations: 89.11 kB / 330.7 MB, free: 9.582 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.778e-05/0.009739, allocations: 154.4 kB / 330.8 MB, free: 9.422 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.183e-05/0.00976, allocations: 37.64 kB / 330.9 MB, free: 9.379 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.823e-05/0.009819, allocations: 116.5 kB / 331 MB, free: 9.258 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.24e-05/0.009841, allocations: 35.73 kB / 331 MB, free: 9.223 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.76e-05/0.009889, allocations: 41.7 kB / 331.1 MB, free: 9.176 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.808e-05/0.009967, allocations: 326.8 kB / 331.4 MB, free: 8.848 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001103/0.01008, allocations: 77.66 kB / 331.5 MB, free: 8.766 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001567/0.01023, allocations: 101.9 kB / 331.6 MB, free: 8.656 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001822/0.01042, allocations: 146 kB / 331.7 MB, free: 8.504 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.01042, allocations: 0 / 331.7 MB, free: 8.504 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002609/0.01068, allocations: 232.9 kB / 331.9 MB, free: 8.258 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.954e-05/0.01071, allocations: 33.7 kB / 332 MB, free: 8.219 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.01071, allocations: 0 / 332 MB, free: 8.219 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.01072, allocations: 0 / 332 MB, free: 8.219 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.982e-05/0.01081, allocations: 27.97 kB / 332 MB, free: 8.191 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.01082, allocations: 8.031 kB / 332 MB, free: 8.184 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.717e-05/0.01089, allocations: 15.94 kB / 332 MB, free: 8.168 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.229e-05/0.0109, allocations: 7.984 kB / 332 MB, free: 8.16 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 ($CLKPRE.rotationalClock.changed.u,rotationalClock.changed.u,$whenCondition2,rotationalClock.less.y,trigger_interval_input.count,$PRE.trigger_interval_input.count,trigger_interval_input.T_start,$PRE.trigger_interval_input.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 1 (rotationalClock.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 1 * 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.724e-05/0.011, allocations: 137.7 kB / 332.2 MB, free: 8.016 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001229/0.01112, allocations: 109.5 kB / 332.3 MB, free: 7.902 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.246e-05/0.01116, allocations: 24.77 kB / 332.3 MB, free: 7.879 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.01117, allocations: 4 kB / 332.3 MB, free: 7.875 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.01117, allocations: 0 / 332.3 MB, free: 7.875 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.01118, allocations: 3.984 kB / 332.3 MB, free: 7.871 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004372/0.01161, allocations: 449.4 kB / 332.7 MB, free: 7.383 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.01162, allocations: 4 kB / 332.7 MB, free: 7.379 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.387e-05/0.01171, allocations: 31.97 kB / 332.8 MB, free: 7.348 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.01171, allocations: 7.938 kB / 332.8 MB, free: 7.34 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.01173, allocations: 7.984 kB / 332.8 MB, free: 7.332 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.536e-06/0.01173, allocations: 11.92 kB / 332.8 MB, free: 7.32 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.01173, allocations: 0 / 332.8 MB, free: 7.32 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003207/0.01205, allocations: 331.9 kB / 333.1 MB, free: 6.977 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.808e-05/0.01207, allocations: 15.84 kB / 333.1 MB, free: 6.961 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.183e-05/0.01209, allocations: 8 kB / 333.2 MB, free: 6.953 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.732e-05/0.01218, allocations: 23.97 kB / 333.2 MB, free: 6.93 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.188e-05/0.01223, allocations: 11.92 kB / 333.2 MB, free: 6.918 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.427e-05/0.01225, allocations: 11.98 kB / 333.2 MB, free: 6.906 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.235e-05/0.0123, allocations: 113.8 kB / 333.3 MB, free: 6.797 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.0123, allocations: 4 kB / 333.3 MB, free: 6.793 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001706/0.01247, allocations: 35.98 kB / 333.3 MB, free: 6.758 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: 10 (rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.cast.y,rotationalClock.changed.u,rotationalClock.changed.y,rotationalClock.less.y,$whenCondition1,trigger_interval_input.T_start,trigger_interval_input.count,$whenCondition2) * Number of discrete states: 1 (trigger_interval_input.count) * Number of clocked states: 1 (rotationalClock.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0007223/0.01319, allocations: 0.9489 MB / 334.3 MB, free: 5.777 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003294/0.01352, allocations: 239.8 kB / 334.5 MB, free: 5.527 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.01352, allocations: 4 kB / 334.5 MB, free: 5.523 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.265e-05/0.01362, allocations: 59.89 kB / 334.6 MB, free: 5.465 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003046/0.01392, allocations: 68.42 kB / 334.7 MB, free: 5.398 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001709/0.01563, allocations: 2.03 MB / 336.7 MB, free: 3.25 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.728e-05/0.01572, allocations: 116.3 kB / 336.8 MB, free: 3.109 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.481e-05/0.01577, allocations: 17.14 kB / 336.8 MB, free: 3.094 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.064e-05/0.01585, allocations: 48.48 kB / 336.9 MB, free: 3.047 MB / 298.7 MB Notification: Performance of SimCode: time 5.91e-07/0.01585, allocations: 0 / 336.9 MB, free: 3.047 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01747/0.03333, allocations: 4.429 MB / 341.3 MB, free: 14.75 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.844/6.877, allocations: 10.88 kB / 341.3 MB, free: 14.74 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000392542 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable sample_angle.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv. Warning: Get data of variable sample_angle.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv failed! Error: Could not read variable rotationalClock.angle in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv. Warning: Get data of variable rotationalClock.angle from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv failed! Error: Could not read variable rotationalClock.direction in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv. Warning: Get data of variable rotationalClock.direction from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv failed! Error: Could not read variable rotationalClock.direction_changed in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv. Warning: Get data of variable rotationalClock.direction_changed from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.720868957228959]