Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 76.06 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001473/0.001473, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.928/0.928, allocations: 173.4 MB / 200.4 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.064e-06/2.064e-06, allocations: 0 / 318.4 MB, free: 6.387 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.52e-05/2.726e-05, allocations: 2.281 kB / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002769/0.002796, allocations: 1.927 MB / 320.3 MB, free: 4.438 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000872/0.003668, allocations: 0.6115 MB / 321 MB, free: 3.82 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002385/0.003907, allocations: 7.938 kB / 321 MB, free: 3.812 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.53e-05/0.003952, allocations: 19.73 kB / 321 MB, free: 3.793 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000104/0.004056, allocations: 23.8 kB / 321 MB, free: 3.77 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004054/0.004461, allocations: 119.5 kB / 321.1 MB, free: 3.652 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002279/0.004689, allocations: 208.1 kB / 321.3 MB, free: 3.449 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001627/0.004852, allocations: 64.88 kB / 321.4 MB, free: 3.383 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001826/0.005035, allocations: 127.7 kB / 321.5 MB, free: 3.258 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001059/0.005141, allocations: 67.78 kB / 321.6 MB, free: 3.191 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.269e-05/0.005173, allocations: 16 kB / 321.6 MB, free: 3.176 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.184e-05/0.005195, allocations: 20 kB / 321.6 MB, free: 3.156 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.778e-05/0.005233, allocations: 47.84 kB / 321.7 MB, free: 3.109 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.1e-05/0.005294, allocations: 63.81 kB / 321.7 MB, free: 3.047 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002165/0.00551, allocations: 231.2 kB / 321.9 MB, free: 2.82 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.005512, allocations: 0 / 321.9 MB, free: 2.82 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.005514, allocations: 3.938 kB / 322 MB, free: 2.816 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.005518, allocations: 0 / 322 MB, free: 2.816 MB / 282.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.0006182/0.006136, allocations: 460.6 kB / 322.4 MB, free: 2.324 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.006174, allocations: 8.922 kB / 322.4 MB, free: 2.316 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.185e-05/0.006216, allocations: 58.73 kB / 322.5 MB, free: 2.25 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.61e-05/0.006262, allocations: 24.8 kB / 322.5 MB, free: 2.227 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002245/0.006487, allocations: 177.2 kB / 322.7 MB, free: 2.031 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.659e-05/0.006553, allocations: 68.28 kB / 322.7 MB, free: 1.953 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.271e-05/0.006576, allocations: 20.38 kB / 322.8 MB, free: 1.934 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005236/0.007099, allocations: 356.7 kB / 323.1 MB, free: 1.562 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.00711, allocations: 0 / 323.1 MB, free: 1.562 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.002e-05/0.007131, allocations: 11.98 kB / 323.1 MB, free: 1.551 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.007139, allocations: 4 kB / 323.1 MB, free: 1.547 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002452/0.007384, allocations: 123.9 kB / 323.2 MB, free: 1.426 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005712/0.007955, allocations: 388.6 kB / 323.6 MB, free: 1 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000319/0.008274, allocations: 189.2 kB / 323.8 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001435/0.008417, allocations: 105.7 kB / 323.9 MB, free: 0.6875 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.098e-05/0.008438, allocations: 7.984 kB / 323.9 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002052/0.008644, allocations: 141 kB / 324 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.482e-06/0.008645, allocations: 0 / 324 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004977/0.009143, allocations: 289.3 kB / 324.3 MB, free: 240 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.354e-05/0.009206, allocations: 93.03 kB / 324.4 MB, free: 128 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000403/0.009609, allocations: 142.4 kB / 324.6 MB, free: 15.97 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.072e-05/0.00963, allocations: 33.7 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.767e-05/0.009688, allocations: 112.5 kB / 324.7 MB, free: 15.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.593e-05/0.009714, allocations: 39.69 kB / 324.7 MB, free: 15.78 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.599e-05/0.00976, allocations: 33.64 kB / 324.8 MB, free: 15.74 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.27e-05/0.009842, allocations: 330.8 kB / 325.1 MB, free: 15.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001189/0.009961, allocations: 89.59 kB / 325.2 MB, free: 15.32 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001091/0.01007, allocations: 98.61 kB / 325.3 MB, free: 15.21 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001853/0.01026, allocations: 138.2 kB / 325.4 MB, free: 15.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.01026, allocations: 0 / 325.4 MB, free: 15.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002698/0.01053, allocations: 236.9 kB / 325.6 MB, free: 14.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.869e-05/0.01056, allocations: 36.34 kB / 325.7 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.01056, allocations: 4 kB / 325.7 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.01058, allocations: 0 / 325.7 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.275e-05/0.01067, allocations: 19.98 kB / 325.7 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.01068, allocations: 4 kB / 325.7 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.216e-05/0.01075, allocations: 27.86 kB / 325.7 MB, free: 14.72 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.397e-05/0.01076, allocations: 7.938 kB / 325.7 MB, free: 14.71 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.029e-05/0.01085, allocations: 137.8 kB / 325.9 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001164/0.01097, allocations: 106.4 kB / 326 MB, free: 14.46 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.059e-05/0.01101, allocations: 20.78 kB / 326 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.01101, allocations: 7.984 kB / 326 MB, free: 14.43 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.01102, allocations: 4 kB / 326 MB, free: 14.43 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.01103, allocations: 0 / 326 MB, free: 14.43 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004395/0.01146, allocations: 449.4 kB / 326.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.01147, allocations: 0 / 326.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.591e-05/0.01156, allocations: 43.91 kB / 326.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.01157, allocations: 0 / 326.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/0.01158, allocations: 11.98 kB / 326.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.01158, allocations: 3.938 kB / 326.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.01158, allocations: 4 kB / 326.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003241/0.01191, allocations: 321.8 kB / 326.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.695e-05/0.01193, allocations: 15.91 kB / 326.8 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.176e-05/0.01195, allocations: 8 kB / 326.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.706e-05/0.01203, allocations: 23.91 kB / 326.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.337e-05/0.01209, allocations: 11.98 kB / 326.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.237e-05/0.0121, allocations: 11.98 kB / 326.9 MB, free: 13.47 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.083e-05/0.01215, allocations: 110.3 kB / 327 MB, free: 13.37 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01215, allocations: 3.938 kB / 327 MB, free: 13.36 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001796/0.01233, allocations: 39.89 kB / 327.1 MB, free: 13.32 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.0006919/0.01302, allocations: 0.9617 MB / 328 MB, free: 12.34 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003287/0.01335, allocations: 232.9 kB / 328.2 MB, free: 12.09 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.01335, allocations: 0 / 328.2 MB, free: 12.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.856e-05/0.01345, allocations: 63.89 kB / 328.3 MB, free: 12.03 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002973/0.01375, allocations: 71.91 kB / 328.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001673/0.01542, allocations: 2.01 MB / 330.4 MB, free: 9.824 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.657e-05/0.0155, allocations: 120.2 kB / 330.5 MB, free: 9.68 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.575e-05/0.01554, allocations: 17.12 kB / 330.5 MB, free: 9.664 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.687e-05/0.01562, allocations: 48.48 kB / 330.6 MB, free: 9.617 MB / 298.7 MB Notification: Performance of SimCode: time 8.61e-07/0.01562, allocations: 4 kB / 330.6 MB, free: 9.613 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01848/0.0341, allocations: 4.384 MB / 335 MB, free: 5.367 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.802/6.836, allocations: 3.875 kB / 335 MB, free: 5.367 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv. Warning: Get data of variable sample_angle.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv failed! Error: Could not read variable rotationalClock.angle in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv. Warning: Get data of variable rotationalClock.angle from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv failed! Error: Could not read variable rotationalClock.direction in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv. Warning: Get data of variable rotationalClock.direction from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv failed! Error: Could not read variable rotationalClock.direction_changed in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv. Warning: Get data of variable rotationalClock.direction_changed from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.725849921815097]