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.00149/0.00149, allocations: 107.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.001428/0.001428, allocations: 206.7 kB / 23.72 MB, free: 4.398 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.42/1.42, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.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 0.002208/0.002208, allocations: 43.92 kB / 377.7 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2818/0.284, allocations: 53.37 MB / 431.1 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003381/0.2874, allocations: 1.96 MB / 433 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001266/0.2886, allocations: 0.67 MB / 433.7 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.2887, allocations: 4 kB / 433.7 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.326e-05/0.2888, allocations: 19.73 kB / 433.7 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001027/0.2889, allocations: 19.75 kB / 433.7 MB, free: 4 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004479/0.2893, allocations: 127.7 kB / 433.9 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002593/0.2896, allocations: 208 kB / 434.1 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001748/0.2898, allocations: 70.52 kB / 434.1 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002022/0.29, allocations: 95.64 kB / 434.2 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001361/0.2901, allocations: 91.59 kB / 434.3 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.866e-05/0.2901, allocations: 20 kB / 434.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.818e-05/0.2902, allocations: 24 kB / 434.4 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.79e-05/0.2903, allocations: 43.84 kB / 434.4 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.593e-05/0.2903, allocations: 75.64 kB / 434.5 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002956/0.2906, allocations: 227 kB / 434.7 MB, free: 3.039 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.2906, allocations: 0 / 434.7 MB, free: 3.039 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.2906, allocations: 0 / 434.7 MB, free: 3.039 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.2906, allocations: 0 / 434.7 MB, free: 3.039 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0008322/0.2915, allocations: 472 kB / 435.2 MB, free: 2.535 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.2915, allocations: 8.031 kB / 435.2 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.441e-05/0.2916, allocations: 54.73 kB / 435.2 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000158/0.2917, allocations: 32.8 kB / 435.3 MB, free: 2.434 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003177/0.2921, allocations: 178.8 kB / 435.4 MB, free: 2.234 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.95e-05/0.2921, allocations: 71.98 kB / 435.5 MB, free: 2.152 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.515e-05/0.2922, allocations: 19.98 kB / 435.5 MB, free: 2.133 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007285/0.2929, allocations: 348.7 kB / 435.9 MB, free: 1.77 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.2929, allocations: 0 / 435.9 MB, free: 1.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.517e-05/0.2929, allocations: 11.98 kB / 435.9 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.293, allocations: 4 kB / 435.9 MB, free: 1.754 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004208/0.2934, allocations: 127.8 kB / 436 MB, free: 1.629 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006608/0.294, allocations: 400.4 kB / 436.4 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004989/0.2945, allocations: 197.2 kB / 436.6 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002579/0.2948, allocations: 93.66 kB / 436.7 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.667e-05/0.2948, allocations: 4 kB / 436.7 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003107/0.2951, allocations: 148.6 kB / 436.8 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.793e-06/0.2951, allocations: 3.938 kB / 436.8 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007988/0.2959, allocations: 289.3 kB / 437.1 MB, free: 436 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.035e-05/0.296, allocations: 93.05 kB / 437.2 MB, free: 324 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001524/0.2962, allocations: 152.1 kB / 437.4 MB, free: 160 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.219e-05/0.2962, allocations: 33.7 kB / 437.4 MB, free: 120 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.612e-05/0.2963, allocations: 108.5 kB / 437.5 MB, free: 8 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.364e-05/0.2963, allocations: 43.8 kB / 437.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.887e-05/0.2964, allocations: 49.69 kB / 437.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.2966, allocations: 330.8 kB / 437.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002211/0.2968, allocations: 93.89 kB / 438 MB, free: 15.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002842/0.2971, allocations: 168.4 kB / 438.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000436/0.2975, allocations: 239.8 kB / 438.4 MB, free: 15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2975, allocations: 0 / 438.4 MB, free: 15 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005893/0.2981, allocations: 304.6 kB / 438.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.88e-05/0.2981, allocations: 33.7 kB / 438.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.2981, allocations: 8 kB / 438.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.2982, allocations: 7.984 kB / 438.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002069/0.2984, allocations: 43.91 kB / 438.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.2984, allocations: 8.328 kB / 438.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001671/0.2985, allocations: 39.77 kB / 438.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.396e-05/0.2986, allocations: 12 kB / 438.8 MB, free: 14.52 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 13 (rotationalClock.changed.y,$CLKPRE.rotationalClock.changed.u,rotationalClock.changed.u,rotationalClock.cast.y,rotationalClock.direction_changed,rotationalClock.direction,$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 (26): * Single equations (assignments): 25 * 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 0.0001358/0.2987, allocations: 145.5 kB / 439 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001971/0.2989, allocations: 109.5 kB / 439.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.7e-05/0.299, allocations: 20.72 kB / 439.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.299, allocations: 0 / 439.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.299, allocations: 4 kB / 439.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.299, allocations: 3.938 kB / 439.1 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007405/0.2997, allocations: 446.4 kB / 439.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.2997, allocations: 0 / 439.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001889/0.2999, allocations: 39.91 kB / 439.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.2999, allocations: 0 / 439.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.39e-05/0.2999, allocations: 15.92 kB / 439.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.2999, allocations: 0 / 439.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2999, allocations: 0 / 439.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005872/0.3005, allocations: 327.7 kB / 439.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.907e-05/0.3006, allocations: 23.83 kB / 440 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.208e-05/0.3006, allocations: 7.938 kB / 440 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000175/0.3008, allocations: 19.98 kB / 440 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.618e-05/0.3008, allocations: 15.97 kB / 440 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.79e-05/0.3009, allocations: 8 kB / 440 MB, free: 13.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.411e-05/0.301, allocations: 111.2 kB / 440.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.301, allocations: 0 / 440.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000294/0.3012, allocations: 35.94 kB / 440.2 MB, free: 13.13 MB / 350.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: 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.001193/0.3024, allocations: 0.9619 MB / 441.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005807/0.303, allocations: 277 kB / 441.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.303, allocations: 0 / 441.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001865/0.3032, allocations: 59.89 kB / 441.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004446/0.3037, allocations: 66.12 kB / 441.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002986/0.3066, allocations: 2.268 MB / 443.8 MB, free: 9.277 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001211/0.3068, allocations: 120.4 kB / 443.9 MB, free: 9.137 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.582e-05/0.3068, allocations: 13.47 kB / 443.9 MB, free: 9.125 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.3069, allocations: 55.41 kB / 444 MB, free: 9.07 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3069, allocations: 0 / 444 MB, free: 9.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03356/0.3405, allocations: 4.475 MB / 448.4 MB, free: 4.758 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.32, allocations: 11.25 kB / 448.4 MB, free: 4.754 MB / 350.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins1/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: 13.848729857010767]