Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.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.001369/0.001369, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 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.001544/0.001544, allocations: 203.5 kB / 23.72 MB, free: 4.391 MB / 14.72 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 1.464/1.464, allocations: 230.5 MB / 257.4 MB, free: 7.727 MB / 206.1 MB " [Timeout remaining time 178] 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.ClockSignals.RotationalSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002085/0.002085, allocations: 67.91 kB / 377.7 MB, free: 2.824 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2906/0.2927, allocations: 53.4 MB / 431.1 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003553/0.2962, allocations: 1.959 MB / 433.1 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001455/0.2977, allocations: 0.67 MB / 433.7 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001315/0.2978, allocations: 4 kB / 433.8 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.718e-05/0.2979, allocations: 19.73 kB / 433.8 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001301/0.298, allocations: 23.73 kB / 433.8 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006073/0.2986, allocations: 127.8 kB / 433.9 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003355/0.2989, allocations: 204 kB / 434.1 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002475/0.2992, allocations: 70.52 kB / 434.2 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000287/0.2995, allocations: 95.62 kB / 434.3 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001551/0.2996, allocations: 75.61 kB / 434.4 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.727e-05/0.2997, allocations: 20 kB / 434.4 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.203e-05/0.2997, allocations: 24 kB / 434.4 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.671e-05/0.2998, allocations: 47.89 kB / 434.4 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001142/0.2999, allocations: 71.59 kB / 434.5 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000409/0.3003, allocations: 231 kB / 434.7 MB, free: 2.832 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.3003, allocations: 0 / 434.7 MB, free: 2.832 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3003, allocations: 0 / 434.7 MB, free: 2.832 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.077e-06/0.3004, allocations: 0 / 434.7 MB, free: 2.832 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.0009612/0.3013, allocations: 465.3 kB / 435.2 MB, free: 2.332 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.3014, allocations: 11.98 kB / 435.2 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.754e-05/0.3014, allocations: 54.73 kB / 435.3 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001786/0.3016, allocations: 40.72 kB / 435.3 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000368/0.302, allocations: 186.1 kB / 435.5 MB, free: 2.016 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.743e-05/0.3021, allocations: 72.05 kB / 435.6 MB, free: 1.934 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.232e-05/0.3021, allocations: 16 kB / 435.6 MB, free: 1.918 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007403/0.3029, allocations: 352.7 kB / 435.9 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.3029, allocations: 0 / 435.9 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.718e-05/0.3029, allocations: 12 kB / 435.9 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.3029, allocations: 0 / 435.9 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004256/0.3033, allocations: 135.8 kB / 436.1 MB, free: 1.406 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007701/0.3041, allocations: 404.4 kB / 436.5 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005069/0.3046, allocations: 193.2 kB / 436.6 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002571/0.3049, allocations: 97.59 kB / 436.7 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.918e-05/0.3049, allocations: 4 kB / 436.7 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003379/0.3052, allocations: 141.2 kB / 436.9 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.723e-06/0.3052, allocations: 0 / 436.9 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008204/0.3061, allocations: 293.2 kB / 437.2 MB, free: 208 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.912e-05/0.3061, allocations: 89.11 kB / 437.3 MB, free: 100 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001728/0.3063, allocations: 153.5 kB / 437.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.108e-05/0.3063, allocations: 33.7 kB / 437.4 MB, free: 15.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.3064, allocations: 108.5 kB / 437.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.443e-05/0.3065, allocations: 39.73 kB / 437.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.088e-05/0.3066, allocations: 45.7 kB / 437.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.3067, allocations: 334.8 kB / 438 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002184/0.3069, allocations: 93.89 kB / 438 MB, free: 15.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002678/0.3072, allocations: 165.8 kB / 438.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000429/0.3076, allocations: 235.8 kB / 438.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.3076, allocations: 0 / 438.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005892/0.3082, allocations: 308.6 kB / 438.7 MB, free: 14.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.521e-05/0.3083, allocations: 33.7 kB / 438.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.381e-05/0.3083, allocations: 4 kB / 438.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.14e-05/0.3083, allocations: 4 kB / 438.8 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00021/0.3085, allocations: 47.91 kB / 438.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.3085, allocations: 4.344 kB / 438.8 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001766/0.3087, allocations: 39.75 kB / 438.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.197e-05/0.3087, allocations: 12 kB / 438.9 MB, free: 14.32 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.0001509/0.3089, allocations: 137.8 kB / 439 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000198/0.3091, allocations: 113.4 kB / 439.1 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.756e-05/0.3091, allocations: 24.7 kB / 439.1 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.3092, allocations: 4 kB / 439.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.3092, allocations: 0 / 439.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.3092, allocations: 3.938 kB / 439.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007213/0.3099, allocations: 446.4 kB / 439.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.3099, allocations: 7.984 kB / 439.6 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001843/0.3101, allocations: 39.91 kB / 439.6 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.3101, allocations: 0 / 439.6 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.079e-05/0.3101, allocations: 11.94 kB / 439.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-06/0.3101, allocations: 0 / 439.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.3101, allocations: 0 / 439.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005667/0.3107, allocations: 332.1 kB / 440 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.714e-05/0.3107, allocations: 15.84 kB / 440 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.16e-05/0.3107, allocations: 11.92 kB / 440 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001699/0.3109, allocations: 19.98 kB / 440 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.522e-05/0.311, allocations: 15.97 kB / 440 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2e-05/0.311, allocations: 11.98 kB / 440 MB, free: 13.06 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.269e-05/0.3111, allocations: 116.1 kB / 440.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3111, allocations: 0 / 440.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002949/0.3114, allocations: 36 kB / 440.2 MB, free: 12.91 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.001137/0.3125, allocations: 0.959 MB / 441.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005848/0.3131, allocations: 275.9 kB / 441.4 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.3131, allocations: 0 / 441.4 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001826/0.3133, allocations: 59.89 kB / 441.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004332/0.3137, allocations: 59.95 kB / 441.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002976/0.3167, allocations: 2.278 MB / 443.8 MB, free: 9.062 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001481/0.3169, allocations: 120.4 kB / 443.9 MB, free: 8.922 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.152e-05/0.3169, allocations: 9.484 kB / 443.9 MB, free: 8.914 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.3171, allocations: 51.42 kB / 444 MB, free: 8.863 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3171, allocations: 4 kB / 444 MB, free: 8.859 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0337/0.3508, allocations: 4.42 MB / 448.4 MB, free: 4.566 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.81/11.16, allocations: 0 / 448.4 MB, free: 4.566 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv. Warning: Get data of variable sample_angle.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv failed! Error: Could not read variable rotationalClock.angle in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv. Warning: Get data of variable rotationalClock.angle from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv failed! Error: Could not read variable rotationalClock.direction in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv. Warning: Get data of variable rotationalClock.direction from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv failed! Error: Could not read variable rotationalClock.direction_changed in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv. Warning: Get data of variable rotationalClock.direction_changed from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.759693072643131]