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.001702/0.001702, allocations: 71.36 kB / 21.24 MB, free: 0.5469 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.002052/0.002052, allocations: 161.4 kB / 24.5 MB, free: 3.719 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.432/1.432, allocations: 177.2 MB / 204.9 MB, free: 9.023 MB / 190.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: translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5095,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5095,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 55.58 kB / 325.5 MB, free: 280 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09808/0.09962, allocations: 53.34 MB / 378.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003469/0.1031, allocations: 1.96 MB / 380.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001338/0.1044, allocations: 0.67 MB / 381.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001114/0.1045, allocations: 4 kB / 381.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.717e-05/0.1046, allocations: 19.73 kB / 381.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001118/0.1047, allocations: 23.75 kB / 381.6 MB, free: 13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004431/0.1052, allocations: 119.8 kB / 381.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002832/0.1054, allocations: 216 kB / 381.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001757/0.1056, allocations: 72.02 kB / 382 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000218/0.1058, allocations: 87.69 kB / 382 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00014/0.106, allocations: 95.53 kB / 382.1 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.874e-05/0.106, allocations: 16 kB / 382.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.99e-05/0.1061, allocations: 24 kB / 382.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.363e-05/0.1062, allocations: 39.91 kB / 382.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.977e-05/0.1062, allocations: 79.64 kB / 382.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003119/0.1066, allocations: 223 kB / 382.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.1066, allocations: 0 / 382.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1066, allocations: 0 / 382.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.1066, allocations: 0 / 382.5 MB, free: 12.05 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.000889/0.1075, allocations: 469.2 kB / 383 MB, free: 11.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.204e-05/0.1075, allocations: 12.03 kB / 383 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001773/0.1077, allocations: 32.78 kB / 383 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002979/0.108, allocations: 178.8 kB / 383.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.362e-05/0.108, allocations: 64.3 kB / 383.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.99e-05/0.1081, allocations: 23.88 kB / 383.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007411/0.1088, allocations: 356.7 kB / 383.6 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.1088, allocations: 0 / 383.6 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.396e-05/0.1089, allocations: 8 kB / 383.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.1089, allocations: 4 kB / 383.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004566/0.1093, allocations: 143.8 kB / 383.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000639/0.11, allocations: 361 kB / 384.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005195/0.1105, allocations: 185.2 kB / 384.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002757/0.1107, allocations: 101.7 kB / 384.4 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.101e-05/0.1108, allocations: 0 / 384.4 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003233/0.1111, allocations: 149.2 kB / 384.6 MB, free: 9.824 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.623e-06/0.1111, allocations: 3.938 kB / 384.6 MB, free: 9.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008368/0.1119, allocations: 281.4 kB / 384.8 MB, free: 9.539 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.509e-05/0.112, allocations: 92.98 kB / 384.9 MB, free: 9.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001575/0.1122, allocations: 157.5 kB / 385.1 MB, free: 9.266 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.936e-05/0.1122, allocations: 29.7 kB / 385.1 MB, free: 9.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.784e-05/0.1123, allocations: 120.5 kB / 385.2 MB, free: 9.109 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.485e-05/0.1123, allocations: 43.8 kB / 385.3 MB, free: 9.066 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.794e-05/0.1124, allocations: 41.7 kB / 385.3 MB, free: 9.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.1126, allocations: 334.8 kB / 385.6 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002285/0.1128, allocations: 89.89 kB / 385.7 MB, free: 8.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002854/0.1131, allocations: 170 kB / 385.9 MB, free: 8.383 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004606/0.1135, allocations: 235.8 kB / 386.1 MB, free: 8.109 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1136, allocations: 0 / 386.1 MB, free: 8.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006157/0.1142, allocations: 307.9 kB / 386.4 MB, free: 7.793 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.204e-05/0.1142, allocations: 33.7 kB / 386.4 MB, free: 7.754 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.1142, allocations: 4 kB / 386.5 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.1142, allocations: 4.344 kB / 386.5 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002037/0.1144, allocations: 43.91 kB / 386.5 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.948e-06/0.1144, allocations: 7.984 kB / 386.5 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001847/0.1146, allocations: 35.83 kB / 386.5 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.286e-05/0.1147, allocations: 12 kB / 386.6 MB, free: 7.648 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.0001441/0.1148, allocations: 145.4 kB / 386.7 MB, free: 7.496 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002048/0.115, allocations: 114.3 kB / 386.8 MB, free: 7.379 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.511e-05/0.1151, allocations: 24.77 kB / 386.8 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.1151, allocations: 0 / 386.8 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.1151, allocations: 4 kB / 386.8 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.1151, allocations: 4 kB / 386.8 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007271/0.1158, allocations: 410 kB / 387.2 MB, free: 6.906 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.1158, allocations: 0 / 387.2 MB, free: 6.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002109/0.116, allocations: 43.89 kB / 387.3 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.116, allocations: 4 kB / 387.3 MB, free: 6.859 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.167e-05/0.116, allocations: 11.98 kB / 387.3 MB, free: 6.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1161, allocations: 4 kB / 387.3 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1161, allocations: 0 / 387.3 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006354/0.1167, allocations: 328 kB / 387.6 MB, free: 6.504 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.854e-05/0.1167, allocations: 19.83 kB / 387.6 MB, free: 6.484 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.208e-05/0.1167, allocations: 8 kB / 387.7 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001879/0.1169, allocations: 15.98 kB / 387.7 MB, free: 6.461 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.806e-05/0.117, allocations: 15.91 kB / 387.7 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.841e-05/0.117, allocations: 16 kB / 387.7 MB, free: 6.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.083e-05/0.1171, allocations: 110.1 kB / 387.8 MB, free: 6.324 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1171, allocations: 4 kB / 387.8 MB, free: 6.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003093/0.1174, allocations: 35.94 kB / 387.8 MB, free: 6.285 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.0001137/0.1175, allocations: 111.2 kB / 388 MB, free: 6.168 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006406/0.1182, allocations: 273.1 kB / 388.2 MB, free: 5.883 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.1182, allocations: 0 / 388.2 MB, free: 5.883 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001983/0.1184, allocations: 59.95 kB / 388.3 MB, free: 5.824 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004284/0.1188, allocations: 59.94 kB / 388.3 MB, free: 5.766 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006875/0.1195, allocations: 329.3 kB / 388.7 MB, free: 5.414 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001216/0.1196, allocations: 120.7 kB / 388.8 MB, free: 5.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.706e-05/0.1197, allocations: 13.48 kB / 388.8 MB, free: 5.258 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.109e-05/0.1198, allocations: 16.5 kB / 388.8 MB, free: 5.238 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1198, allocations: 4 kB / 388.8 MB, free: 5.234 MB / 350.1 MB Notification: Performance of Templates: time 0.005473/0.1252, allocations: 2.035 MB / 390.8 MB, free: 3.227 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/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] "" [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,rotationalClock.abs1.generateEvent,rotationalClock.abs2.generateEvent,rotationalClock.angle,rotationalClock.angular_offset.y_start,rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.direction_sign.generateEvent,rotationalClock.sub.k1,rotationalClock.sub.k2,rotationalClock.useSolver,rotationalClock.y_clock.useSolver,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 [Calling sys.exit(0), Time elapsed: 4.50513929896988]