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.001659/0.001659, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.001963/0.001963, allocations: 207.5 kB / 20.75 MB, free: 2.312 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.393/1.393, allocations: 230.4 MB / 254 MB, free: 15.01 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.001789/0.001789, allocations: 55.91 kB / 373 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1145, allocations: 53.38 MB / 426.3 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003516/0.118, allocations: 2.005 MB / 428.3 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001253/0.1192, allocations: 0.7166 MB / 429.1 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.557e-05/0.1193, allocations: 4 kB / 429.1 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.047e-05/0.1194, allocations: 19.73 kB / 429.1 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001055/0.1195, allocations: 23.73 kB / 429.1 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004158/0.1199, allocations: 119.8 kB / 429.2 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002656/0.1202, allocations: 207.9 kB / 429.4 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00017/0.1203, allocations: 68.34 kB / 429.5 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002015/0.1205, allocations: 95.69 kB / 429.6 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001303/0.1207, allocations: 95.58 kB / 429.7 MB, free: 1.277 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.512e-05/0.1207, allocations: 20 kB / 429.7 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.05e-05/0.1208, allocations: 20 kB / 429.7 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.668e-05/0.1208, allocations: 43.84 kB / 429.8 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.332e-05/0.1209, allocations: 91.52 kB / 429.9 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002847/0.1212, allocations: 219 kB / 430.1 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.227e-06/0.1212, allocations: 0 / 430.1 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1212, allocations: 0 / 430.1 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.767e-06/0.1212, allocations: 0 / 430.1 MB, free: 0.8906 MB / 350.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.0009256/0.1221, allocations: 0.5374 MB / 430.6 MB, free: 296 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.1222, allocations: 8.031 kB / 430.6 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.258e-05/0.1222, allocations: 58.72 kB / 430.7 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001589/0.1224, allocations: 28.8 kB / 430.7 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2093/0.3317, allocations: 238.7 kB / 430.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.785e-05/0.3318, allocations: 41.78 kB / 431 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.493e-05/0.3318, allocations: 18 kB / 431 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007896/0.3326, allocations: 329.9 kB / 431.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.3326, allocations: 0.8438 kB / 431.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.413e-05/0.3327, allocations: 5.625 kB / 431.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.3327, allocations: 7.812 kB / 431.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004306/0.3331, allocations: 129.5 kB / 431.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005868/0.3337, allocations: 454.6 kB / 431.9 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004898/0.3342, allocations: 197.8 kB / 432.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002399/0.3344, allocations: 98.2 kB / 432.2 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.91e-05/0.3345, allocations: 5.953 kB / 432.2 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002968/0.3348, allocations: 121.5 kB / 432.3 MB, free: 10.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.295e-06/0.3348, allocations: 0 / 432.3 MB, free: 10.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008028/0.3356, allocations: 290 kB / 432.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.258e-05/0.3356, allocations: 94.45 kB / 432.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.455e-05/0.3357, allocations: 147.5 kB / 432.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.019e-05/0.3357, allocations: 29.33 kB / 432.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.152e-05/0.3358, allocations: 119.2 kB / 433 MB, free: 10.17 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.014e-05/0.3358, allocations: 47.12 kB / 433 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.959e-05/0.3359, allocations: 45.59 kB / 433.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.304e-05/0.3359, allocations: 324.9 kB / 433.4 MB, free: 9.816 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00019/0.3361, allocations: 62.86 kB / 433.4 MB, free: 9.816 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002179/0.3363, allocations: 148.8 kB / 433.6 MB, free: 9.719 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003815/0.3367, allocations: 238.8 kB / 433.8 MB, free: 9.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.3367, allocations: 5.125 kB / 433.8 MB, free: 9.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005245/0.3372, allocations: 271.8 kB / 434.1 MB, free: 9.516 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.101e-05/0.3373, allocations: 37.23 kB / 434.1 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.3373, allocations: 6.312 kB / 434.1 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.3373, allocations: 6.281 kB / 434.1 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001947/0.3375, allocations: 41.72 kB / 434.2 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.819e-06/0.3375, allocations: 4.953 kB / 434.2 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001677/0.3377, allocations: 30.59 kB / 434.2 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.219e-05/0.3377, allocations: 13.38 kB / 434.2 MB, free: 9.477 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.0001032/0.3378, allocations: 147.6 kB / 434.4 MB, free: 9.355 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000171/0.338, allocations: 115.5 kB / 434.5 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.711e-05/0.338, allocations: 19.34 kB / 434.5 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.84e-06/0.338, allocations: 3.312 kB / 434.5 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.338, allocations: 0 / 434.5 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.338, allocations: 5.203 kB / 434.5 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006279/0.3387, allocations: 498 kB / 435 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.3387, allocations: 1.703 kB / 435 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001806/0.3389, allocations: 42.05 kB / 435 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.3389, allocations: 1 kB / 435 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.3389, allocations: 7.359 kB / 435 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.3389, allocations: 2.156 kB / 435.1 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3389, allocations: 3.938 kB / 435.1 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005144/0.3394, allocations: 327.4 kB / 435.4 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.952e-05/0.3394, allocations: 94.39 kB / 435.5 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.113e-05/0.3395, allocations: 7.734 kB / 435.5 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001738/0.3396, allocations: 18.89 kB / 435.5 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.642e-05/0.3397, allocations: 20.03 kB / 435.5 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.708e-05/0.3397, allocations: 7.469 kB / 435.5 MB, free: 8.707 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.176e-05/0.3398, allocations: 119.9 kB / 435.6 MB, free: 8.613 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3398, allocations: 5.062 kB / 435.6 MB, free: 8.609 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002816/0.3401, allocations: 35.84 kB / 435.7 MB, free: 8.602 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.0009383/0.341, allocations: 0.9651 MB / 436.6 MB, free: 7.832 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005157/0.3415, allocations: 234.6 kB / 436.9 MB, free: 7.719 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3415, allocations: 3.938 kB / 436.9 MB, free: 7.715 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001851/0.3417, allocations: 60.95 kB / 436.9 MB, free: 7.699 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004296/0.3421, allocations: 74.59 kB / 437 MB, free: 7.668 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002348/0.3445, allocations: 2.148 MB / 439.2 MB, free: 5.961 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001468/0.3446, allocations: 0.7257 MB / 439.9 MB, free: 5.262 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.413e-05/0.3447, allocations: 16.11 kB / 439.9 MB, free: 5.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.21e-05/0.3448, allocations: 52.11 kB / 439.9 MB, free: 5.215 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3448, allocations: 0 / 439.9 MB, free: 5.215 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02556/0.3703, allocations: 3.814 MB / 443.8 MB, free: 4.699 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.618/7.988, allocations: 5.062 kB / 443.8 MB, free: 4.695 MB / 350.1 MB " [Timeout remaining time 652] (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: 10.487048544920981]