Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000823/0.0008231, allocations: 93.7 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008983/0.0008984, allocations: 180.5 kB / 17.19 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 223.2 MB / 241.1 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002682/0.0002682, allocations: 10.27 kB / 300.7 MB, free: 5.969 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1101, allocations: 50.42 MB / 351.1 MB, free: 11.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002132/0.1123, allocations: 1.628 MB / 352.8 MB, free: 10.1 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008334/0.1132, allocations: 0.5886 MB / 353.4 MB, free: 9.508 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.891e-05/0.1133, allocations: 0 / 353.4 MB, free: 9.508 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.029e-05/0.1133, allocations: 11.86 kB / 353.4 MB, free: 9.496 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.99e-05/0.1134, allocations: 19.91 kB / 353.4 MB, free: 9.477 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003137/0.1137, allocations: 87.77 kB / 353.5 MB, free: 9.391 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001379/0.1139, allocations: 108.2 kB / 353.6 MB, free: 9.285 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001572/0.114, allocations: 79.14 kB / 353.6 MB, free: 9.211 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00012/0.1142, allocations: 59.75 kB / 353.7 MB, free: 9.152 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.184e-05/0.1143, allocations: 59.69 kB / 353.8 MB, free: 9.094 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.832e-05/0.1143, allocations: 8 kB / 353.8 MB, free: 9.086 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.946e-05/0.1143, allocations: 4 kB / 353.8 MB, free: 9.082 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.216e-05/0.1144, allocations: 31.83 kB / 353.8 MB, free: 9.051 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.872e-05/0.1144, allocations: 49.64 kB / 353.9 MB, free: 8.996 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001416/0.1146, allocations: 151.6 kB / 354 MB, free: 8.848 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.693e-06/0.1146, allocations: 0 / 354 MB, free: 8.848 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.1146, allocations: 4 kB / 354 MB, free: 8.844 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.1146, allocations: 3.938 kB / 354 MB, free: 8.84 MB / 286.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.0007096/0.1153, allocations: 0.4946 MB / 354.5 MB, free: 8.281 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.286e-05/0.1153, allocations: 12.02 kB / 354.5 MB, free: 8.27 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.065e-05/0.1154, allocations: 27.67 kB / 354.5 MB, free: 8.242 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002136/0.1156, allocations: 228.8 kB / 354.8 MB, free: 7.98 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.235e-05/0.1157, allocations: 42.03 kB / 354.8 MB, free: 7.934 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.538e-05/0.1157, allocations: 16 kB / 354.8 MB, free: 7.918 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006392/0.1164, allocations: 337.6 kB / 355.2 MB, free: 7.574 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.1164, allocations: 3.984 kB / 355.2 MB, free: 7.57 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.323e-05/0.1164, allocations: 11.95 kB / 355.2 MB, free: 7.559 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.1165, allocations: 3.984 kB / 355.2 MB, free: 7.555 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004002/0.1169, allocations: 152.3 kB / 355.3 MB, free: 7.406 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005895/0.1175, allocations: 462 kB / 355.8 MB, free: 6.902 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004568/0.1179, allocations: 217.1 kB / 356 MB, free: 6.672 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.123e-05/0.118, allocations: 4.062 kB / 356 MB, free: 6.668 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002972/0.1183, allocations: 131.6 kB / 356.1 MB, free: 6.527 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.663e-06/0.1183, allocations: 0 / 356.1 MB, free: 6.527 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007613/0.119, allocations: 305.3 kB / 356.4 MB, free: 6.223 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.744e-05/0.1191, allocations: 89.05 kB / 356.5 MB, free: 6.117 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001068/0.1192, allocations: 145.1 kB / 356.6 MB, free: 5.965 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.583e-05/0.1192, allocations: 33.7 kB / 356.7 MB, free: 5.926 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.306e-05/0.1193, allocations: 116.4 kB / 356.8 MB, free: 5.809 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.585e-05/0.1194, allocations: 39.55 kB / 356.8 MB, free: 5.77 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.027e-05/0.1194, allocations: 0 / 356.8 MB, free: 5.77 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.672e-05/0.1195, allocations: 334.8 kB / 357.2 MB, free: 5.434 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001894/0.1197, allocations: 68.19 kB / 357.2 MB, free: 5.367 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002279/0.1199, allocations: 150.7 kB / 357.4 MB, free: 5.184 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002213/0.1201, allocations: 111.9 kB / 357.5 MB, free: 5.07 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.1202, allocations: 0 / 357.5 MB, free: 5.07 MB / 286.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005208/0.1207, allocations: 295.1 kB / 357.8 MB, free: 4.77 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.167e-05/0.1207, allocations: 33.69 kB / 357.8 MB, free: 4.73 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.1207, allocations: 4 kB / 357.8 MB, free: 4.727 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.1208, allocations: 4 kB / 357.8 MB, free: 4.723 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001906/0.121, allocations: 47.91 kB / 357.9 MB, free: 4.676 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.121, allocations: 4 kB / 357.9 MB, free: 4.672 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001701/0.1212, allocations: 35.83 kB / 357.9 MB, free: 4.637 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.385e-05/0.1212, allocations: 12 kB / 357.9 MB, free: 4.625 MB / 286.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,rotationalClock.changed.u,$CLKPRE.rotationalClock.changed.u,rotationalClock.cast.y,rotationalClock.direction_changed,rotationalClock.direction,$whenCondition1,$PRE.trigger_interval_input.T_start,trigger_interval_input.T_start,$PRE.trigger_interval_input.count,trigger_interval_input.count,rotationalClock.less.y,$whenCondition2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000117/0.1213, allocations: 149.5 kB / 358.1 MB, free: 4.469 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001636/0.1215, allocations: 101.4 kB / 358.2 MB, free: 4.363 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.647e-05/0.1215, allocations: 24.7 kB / 358.2 MB, free: 4.336 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.1216, allocations: 0 / 358.2 MB, free: 4.336 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/0.1216, allocations: 4 kB / 358.2 MB, free: 4.332 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.1216, allocations: 0 / 358.2 MB, free: 4.332 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006703/0.1222, allocations: 0.5069 MB / 358.7 MB, free: 3.77 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.1223, allocations: 0 / 358.7 MB, free: 3.77 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001837/0.1224, allocations: 51.91 kB / 358.7 MB, free: 3.719 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.1225, allocations: 4 kB / 358.7 MB, free: 3.715 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.596e-05/0.1225, allocations: 3.984 kB / 358.7 MB, free: 3.711 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.1225, allocations: 4 kB / 358.8 MB, free: 3.707 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.1225, allocations: 4 kB / 358.8 MB, free: 3.703 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005386/0.123, allocations: 353.7 kB / 359.1 MB, free: 3.332 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.32e-05/0.1231, allocations: 96.86 kB / 359.2 MB, free: 3.219 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.01e-05/0.1231, allocations: 0 / 359.2 MB, free: 3.219 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001803/0.1233, allocations: 27.98 kB / 359.2 MB, free: 3.191 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.227e-05/0.1234, allocations: 23.86 kB / 359.2 MB, free: 3.168 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.835e-05/0.1234, allocations: 11.98 kB / 359.3 MB, free: 3.156 MB / 286.1 MB Notification: Performance of sorting global known variables: time 7.657e-05/0.1235, allocations: 110.6 kB / 359.4 MB, free: 3.051 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1235, allocations: 0 / 359.4 MB, free: 3.051 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002887/0.1238, allocations: 35.91 kB / 359.4 MB, free: 3.016 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001228/0.124, allocations: 115.7 kB / 359.5 MB, free: 2.895 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005223/0.1245, allocations: 255.6 kB / 359.8 MB, free: 2.633 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1245, allocations: 0 / 359.8 MB, free: 2.633 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000187/0.1247, allocations: 67.97 kB / 359.8 MB, free: 2.566 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003197/0.125, allocations: 55.94 kB / 359.9 MB, free: 2.512 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006137/0.1256, allocations: 383.4 kB / 360.3 MB, free: 2.105 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000251/0.1259, allocations: 0.7325 MB / 361 MB, free: 1.348 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.629e-05/0.126, allocations: 17.42 kB / 361 MB, free: 1.328 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.144e-05/0.126, allocations: 15.44 kB / 361 MB, free: 1.312 MB / 286.1 MB Notification: Performance of SimCode: time 2.4e-07/0.126, allocations: 0 / 361 MB, free: 1.312 MB / 286.1 MB Notification: Performance of Templates: time 0.004255/0.1303, allocations: 1.621 MB / 362.6 MB, free: 15.7 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample_angle.y,rotationalClock.angle,rotationalClock.direction,rotationalClock.direction_changed Variables in the result:angle_input.amplitude,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