Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001712/0.001712, allocations: 107.8 kB / 19.17 MB, free: 3.871 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.002021/0.002021, allocations: 208.9 kB / 22.13 MB, free: 0.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.519/1.519, allocations: 230.4 MB / 255.4 MB, free: 15.02 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-beta.om/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: 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-beta.om_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-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002288/0.002288, allocations: 71.83 kB / 374.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1197, allocations: 53.31 MB / 428 MB, free: 4.453 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.004264/0.124, allocations: 2.006 MB / 430.1 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001594/0.1256, allocations: 0.7011 MB / 430.8 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002309/0.1258, allocations: 3.938 kB / 430.8 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.191e-05/0.1259, allocations: 15.8 kB / 430.8 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001731/0.1261, allocations: 27.75 kB / 430.8 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006255/0.1267, allocations: 134.5 kB / 430.9 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003797/0.1271, allocations: 196 kB / 431.1 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002358/0.1273, allocations: 84.19 kB / 431.2 MB, free: 1.277 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002967/0.1276, allocations: 87.69 kB / 431.3 MB, free: 1.191 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001981/0.1278, allocations: 95.59 kB / 431.4 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.082e-05/0.1279, allocations: 16 kB / 431.4 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.293e-05/0.1279, allocations: 24 kB / 431.4 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.839e-05/0.128, allocations: 43.84 kB / 431.5 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001161/0.1281, allocations: 91.52 kB / 431.6 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003898/0.1285, allocations: 227 kB / 431.8 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.1285, allocations: 0 / 431.8 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1285, allocations: 0 / 431.8 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.1285, allocations: 0 / 431.8 MB, free: 0.7031 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.001092/0.1296, allocations: 0.5296 MB / 432.3 MB, free: 112 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.1296, allocations: 12.03 kB / 432.3 MB, free: 100 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002071/0.1299, allocations: 32.78 kB / 432.3 MB, free: 68 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2164/0.3463, allocations: 234.8 kB / 432.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.727e-05/0.3464, allocations: 44.36 kB / 432.6 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.164e-05/0.3464, allocations: 16 kB / 432.6 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008133/0.3472, allocations: 331 kB / 433 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.3472, allocations: 1.703 kB / 433 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.622e-05/0.3473, allocations: 5.25 kB / 433 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.3473, allocations: 3.531 kB / 433 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004416/0.3477, allocations: 136.7 kB / 433.1 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006284/0.3483, allocations: 455.9 kB / 433.5 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005086/0.3488, allocations: 195.2 kB / 433.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002495/0.3491, allocations: 98.88 kB / 433.8 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.231e-05/0.3491, allocations: 3.812 kB / 433.8 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002934/0.3494, allocations: 119.5 kB / 434 MB, free: 11.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.064e-06/0.3494, allocations: 3.531 kB / 434 MB, free: 11.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008013/0.3502, allocations: 284.8 kB / 434.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.433e-05/0.3503, allocations: 87.45 kB / 434.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.3504, allocations: 150.6 kB / 434.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.022e-05/0.3504, allocations: 30.56 kB / 434.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.708e-05/0.3505, allocations: 121.7 kB / 434.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.141e-05/0.3505, allocations: 43.19 kB / 434.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.064e-05/0.3506, allocations: 42.8 kB / 434.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.045e-05/0.3506, allocations: 332.1 kB / 435 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001937/0.3508, allocations: 60.56 kB / 435.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002183/0.351, allocations: 153.1 kB / 435.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003893/0.3514, allocations: 232.1 kB / 435.5 MB, free: 10.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.3514, allocations: 5.125 kB / 435.5 MB, free: 10.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000538/0.352, allocations: 278 kB / 435.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.346e-05/0.352, allocations: 34.25 kB / 435.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.352, allocations: 2.719 kB / 435.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.118e-05/0.352, allocations: 4.031 kB / 435.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002081/0.3522, allocations: 46.59 kB / 435.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.124e-05/0.3523, allocations: 6.906 kB / 435.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001654/0.3524, allocations: 29.78 kB / 435.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.468e-05/0.3524, allocations: 14.62 kB / 435.9 MB, free: 10.17 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.000112/0.3526, allocations: 141.6 kB / 436 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001848/0.3527, allocations: 107.8 kB / 436.1 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.539e-05/0.3528, allocations: 26.75 kB / 436.1 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.3528, allocations: 3.234 kB / 436.1 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.483e-06/0.3528, allocations: 1.312 kB / 436.1 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.3528, allocations: 3.188 kB / 436.2 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006639/0.3535, allocations: 0.4887 MB / 436.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.3535, allocations: 1.281 kB / 436.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001858/0.3537, allocations: 40.48 kB / 436.7 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.3537, allocations: 1.531 kB / 436.7 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.056e-05/0.3537, allocations: 10.95 kB / 436.7 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.3537, allocations: 3.125 kB / 436.7 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.3537, allocations: 6.516 kB / 436.7 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005393/0.3542, allocations: 332.3 kB / 437 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.457e-05/0.3543, allocations: 93.06 kB / 437.1 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.939e-05/0.3543, allocations: 5.25 kB / 437.1 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001698/0.3545, allocations: 15.39 kB / 437.1 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.817e-05/0.3546, allocations: 17.2 kB / 437.2 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.933e-05/0.3546, allocations: 10.39 kB / 437.2 MB, free: 9.254 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.315e-05/0.3547, allocations: 112.3 kB / 437.3 MB, free: 9.168 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3547, allocations: 2.531 kB / 437.3 MB, free: 9.168 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003024/0.355, allocations: 47.14 kB / 437.3 MB, free: 9.148 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.000104/0.3551, allocations: 112.8 kB / 437.4 MB, free: 9.051 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005584/0.3556, allocations: 231 kB / 437.7 MB, free: 8.945 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.3556, allocations: 1.688 kB / 437.7 MB, free: 8.945 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001947/0.3558, allocations: 65.72 kB / 437.7 MB, free: 8.926 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004431/0.3563, allocations: 72.5 kB / 437.8 MB, free: 8.895 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006313/0.3569, allocations: 340.5 kB / 438.1 MB, free: 8.652 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002025/0.3571, allocations: 0.7291 MB / 438.9 MB, free: 7.949 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.016e-05/0.3572, allocations: 24.91 kB / 438.9 MB, free: 7.938 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3572, allocations: 0 / 438.9 MB, free: 7.938 MB / 350.1 MB Notification: Performance of Templates: time 0.005218/0.3624, allocations: 2.215 MB / 441.1 MB, free: 7.754 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_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:rotationalClock.angle,rotationalClock.direction,rotationalClock.direction_changed,sample_angle.y,time [Calling sys.exit(0), Time elapsed: 6.997187911998481]