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.00179/0.00179, allocations: 121.3 kB / 18.5 MB, free: 4.578 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.002106/0.002106, allocations: 210.5 kB / 21.46 MB, free: 1.625 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.431/1.431, allocations: 230.2 MB / 254.5 MB, free: 15.26 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: 59.89 kB / 373.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0995/0.1013, allocations: 53.33 MB / 426.6 MB, free: 5.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.00342/0.1047, allocations: 2 MB / 428.6 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001435/0.1061, allocations: 0.7089 MB / 429.4 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001293/0.1063, allocations: 7.938 kB / 429.4 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.908e-05/0.1063, allocations: 15.8 kB / 429.4 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001211/0.1065, allocations: 27.73 kB / 429.4 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004785/0.1069, allocations: 119.7 kB / 429.5 MB, free: 2.129 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002778/0.1072, allocations: 212 kB / 429.7 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001946/0.1074, allocations: 72.31 kB / 429.8 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002302/0.1076, allocations: 87.7 kB / 429.9 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000134/0.1078, allocations: 87.59 kB / 430 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.655e-05/0.1078, allocations: 23.94 kB / 430 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.132e-05/0.1079, allocations: 28 kB / 430 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.157e-05/0.1079, allocations: 43.83 kB / 430.1 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.07e-05/0.108, allocations: 83.53 kB / 430.1 MB, free: 1.504 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003258/0.1083, allocations: 227 kB / 430.4 MB, free: 1.281 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1083, allocations: 0 / 430.4 MB, free: 1.281 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1083, allocations: 4 kB / 430.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.1084, allocations: 0 / 430.4 MB, free: 1.277 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.0009036/0.1093, allocations: 0.5335 MB / 430.9 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.1093, allocations: 12.03 kB / 430.9 MB, free: 0.668 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.734e-05/0.1094, allocations: 46.73 kB / 431 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001708/0.1095, allocations: 32.78 kB / 431 MB, free: 0.582 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003611/0.1099, allocations: 239.1 kB / 431.2 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.7e-05/0.11, allocations: 46.34 kB / 431.3 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.166e-05/0.11, allocations: 16 kB / 431.3 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007363/0.1107, allocations: 335 kB / 431.6 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.1107, allocations: 0 / 431.6 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.319e-05/0.1108, allocations: 8 kB / 431.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.888e-06/0.1108, allocations: 7.938 kB / 431.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004025/0.1112, allocations: 123.9 kB / 431.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007403/0.1119, allocations: 473.3 kB / 432.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000491/0.1124, allocations: 189.2 kB / 432.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002447/0.1126, allocations: 101.7 kB / 432.5 MB, free: 14.94 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.046e-05/0.1127, allocations: 4.062 kB / 432.5 MB, free: 14.94 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002963/0.113, allocations: 115.5 kB / 432.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.833e-06/0.113, allocations: 0 / 432.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008003/0.1138, allocations: 302 kB / 432.9 MB, free: 14.51 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.901e-05/0.1139, allocations: 85.11 kB / 433 MB, free: 14.41 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001556/0.114, allocations: 150.4 kB / 433.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.714e-05/0.1141, allocations: 33.7 kB / 433.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.848e-05/0.1141, allocations: 108.6 kB / 433.3 MB, free: 14.1 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.98e-05/0.1142, allocations: 43.67 kB / 433.3 MB, free: 14.06 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.993e-05/0.1143, allocations: 53.69 kB / 433.4 MB, free: 14 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.1144, allocations: 326.8 kB / 433.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001929/0.1146, allocations: 64.19 kB / 433.8 MB, free: 13.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000254/0.1149, allocations: 154.6 kB / 433.9 MB, free: 13.42 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004089/0.1153, allocations: 215.9 kB / 434.1 MB, free: 13.17 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1153, allocations: 4 kB / 434.1 MB, free: 13.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005609/0.1158, allocations: 280.7 kB / 434.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.528e-05/0.1159, allocations: 33.7 kB / 434.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.1159, allocations: 4.344 kB / 434.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.1159, allocations: 8 kB / 434.4 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001956/0.1161, allocations: 43.91 kB / 434.5 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/0.1161, allocations: 11.88 kB / 434.5 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001744/0.1163, allocations: 35.8 kB / 434.5 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.191e-05/0.1163, allocations: 12 kB / 434.5 MB, free: 12.73 MB / 366.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.0001469/0.1164, allocations: 133.8 kB / 434.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001898/0.1166, allocations: 109.6 kB / 434.8 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.285e-05/0.1167, allocations: 24.7 kB / 434.8 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.1167, allocations: 0 / 434.8 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.1167, allocations: 4 kB / 434.8 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.1167, allocations: 3.938 kB / 434.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007678/0.1175, allocations: 0.4942 MB / 435.3 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.1175, allocations: 4 kB / 435.3 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001801/0.1177, allocations: 39.97 kB / 435.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.1177, allocations: 0 / 435.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.368e-05/0.1177, allocations: 11.92 kB / 435.4 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.1177, allocations: 4 kB / 435.4 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.1177, allocations: 3.938 kB / 435.4 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005831/0.1183, allocations: 324.9 kB / 435.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.542e-05/0.1184, allocations: 96.94 kB / 435.8 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.951e-05/0.1184, allocations: 11.94 kB / 435.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/0.1186, allocations: 11.98 kB / 435.8 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.182e-05/0.1186, allocations: 19.97 kB / 435.8 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.834e-05/0.1187, allocations: 8 kB / 435.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.875e-05/0.1187, allocations: 115.3 kB / 435.9 MB, free: 11.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1187, allocations: 0 / 435.9 MB, free: 11.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003068/0.119, allocations: 36 kB / 436 MB, free: 11.17 MB / 366.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.001167/0.1202, allocations: 0.9668 MB / 436.9 MB, free: 10.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005632/0.1208, allocations: 242.9 kB / 437.2 MB, free: 9.926 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.1208, allocations: 0 / 437.2 MB, free: 9.926 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001774/0.121, allocations: 56.66 kB / 437.2 MB, free: 9.871 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004426/0.1214, allocations: 75.09 kB / 437.3 MB, free: 9.805 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002951/0.1244, allocations: 2.165 MB / 439.5 MB, free: 7.484 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003717/0.1247, allocations: 0.7244 MB / 440.2 MB, free: 6.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.151e-05/0.1248, allocations: 17.55 kB / 440.2 MB, free: 6.715 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.1249, allocations: 47.42 kB / 440.3 MB, free: 6.668 MB / 366.1 MB Notification: Performance of SimCode: time 8.62e-07/0.1249, allocations: 0 / 440.3 MB, free: 6.668 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02778/0.1527, allocations: 3.796 MB / 444.1 MB, free: 3.004 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.691/7.843, allocations: 22.91 kB / 444.1 MB, free: 2.984 MB / 366.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample_fmu --startTime=0 --stopTime=2 --stepSize=0.000392542 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample_angle.y,rotationalClock.angle,rotationalClock.direction,rotationalClock.direction_changed Variables in the result:angle_input.amplitude,angle_input.continuous,angle_input.f,angle_input.offset,angle_input.phase,angle_input.startTime,angle_input.y,previous(rotationalClock.changed.u),rotationalClock.abs1.generateEvent,rotationalClock.abs1.u,rotationalClock.abs1.y,rotationalClock.abs2.generateEvent,rotationalClock.abs2.u,rotationalClock.abs2.y,rotationalClock.angle,rotationalClock.angular_offset.u,rotationalClock.angular_offset.y,rotationalClock.angular_offset.y_start,rotationalClock.cast.u,rotationalClock.cast.y,rotationalClock.changed.u,rotationalClock.changed.y,rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.direction_sign.generateEvent,rotationalClock.direction_sign.u,rotationalClock.direction_sign.y,rotationalClock.less.u1,rotationalClock.less.u2,rotationalClock.less.y,rotationalClock.sub.k1,rotationalClock.sub.k2,rotationalClock.sub.u1,rotationalClock.sub.u2,rotationalClock.sub.y,rotationalClock.trigger_interval,rotationalClock.update_direction.u,rotationalClock.update_direction.y,rotationalClock.update_offset.u,rotationalClock.update_offset.y,rotationalClock.useSolver,rotationalClock.y_clock.u,rotationalClock.y_clock.useSolver,sample_angle.u,sample_angle.y,time,trigger_interval_input.amplitude,trigger_interval_input.nperiod,trigger_interval_input.offset,trigger_interval_input.period,trigger_interval_input.startTime,trigger_interval_input.width,trigger_interval_input.y [Calling sys.exit(0), Time elapsed: 10.44045308418572]