Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_cpp_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_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001664/0.001663, allocations: 196.2 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 226.6 MB / 244.3 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008878/0.0008878, allocations: 95.05 kB / 296.4 MB, free: 7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002222/0.0002222, allocations: 8 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.267, allocations: 51.29 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.001853/0.2689, allocations: 1.636 MB / 409.1 MB, free: 26.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009285/0.2698, allocations: 0.6325 MB / 409.8 MB, free: 25.56 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001118/0.2699, allocations: 6.094 kB / 409.8 MB, free: 25.56 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.664e-05/0.27, allocations: 15.84 kB / 409.8 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001054/0.2701, allocations: 11.88 kB / 409.8 MB, free: 25.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003844/0.2705, allocations: 84.5 kB / 409.9 MB, free: 25.45 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001516/0.2706, allocations: 178.4 kB / 410.1 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.2708, allocations: 71.06 kB / 410.1 MB, free: 25.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001716/0.271, allocations: 63.75 kB / 410.2 MB, free: 25.15 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.577e-05/0.2711, allocations: 67.61 kB / 410.3 MB, free: 25.08 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.316e-05/0.2711, allocations: 8 kB / 410.3 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.466e-05/0.2712, allocations: 8.688 kB / 410.3 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.524e-05/0.2712, allocations: 19.92 kB / 410.3 MB, free: 25.05 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.209e-05/0.2713, allocations: 50.17 kB / 410.3 MB, free: 24.99 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001525/0.2714, allocations: 156.3 kB / 410.5 MB, free: 24.84 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.2714, allocations: 0 / 410.5 MB, free: 24.84 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.955e-06/0.2714, allocations: 0.5938 kB / 410.5 MB, free: 24.84 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.069e-06/0.2714, allocations: 3.938 kB / 410.5 MB, free: 24.84 MB / 298.7 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.0007354/0.2722, allocations: 0.4997 MB / 411 MB, free: 24.28 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.2722, allocations: 12.03 kB / 411 MB, free: 24.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001811/0.2724, allocations: 31.7 kB / 411 MB, free: 24.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002009/0.2726, allocations: 238.1 kB / 411.3 MB, free: 23.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.085e-05/0.2727, allocations: 43.62 kB / 411.3 MB, free: 23.92 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.885e-05/0.2727, allocations: 15.95 kB / 411.3 MB, free: 23.9 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006398/0.2734, allocations: 334.2 kB / 411.7 MB, free: 23.56 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.2734, allocations: 0 / 411.7 MB, free: 23.56 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.357e-05/0.2734, allocations: 11.94 kB / 411.7 MB, free: 23.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.2735, allocations: 4 kB / 411.7 MB, free: 23.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004168/0.2739, allocations: 144.5 kB / 411.8 MB, free: 23.41 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005581/0.2744, allocations: 462 kB / 412.3 MB, free: 22.9 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004605/0.2749, allocations: 217.1 kB / 412.5 MB, free: 22.67 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000232/0.2752, allocations: 117.7 kB / 412.6 MB, free: 22.55 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.2752, allocations: 7.984 kB / 412.6 MB, free: 22.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002983/0.2755, allocations: 119.3 kB / 412.7 MB, free: 22.41 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.883e-06/0.2755, allocations: 0 / 412.7 MB, free: 22.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007617/0.2763, allocations: 317.3 kB / 413 MB, free: 22.1 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.18e-05/0.2763, allocations: 85.11 kB / 413.1 MB, free: 22 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.684e-05/0.2764, allocations: 147 kB / 413.2 MB, free: 21.84 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.034e-05/0.2765, allocations: 29.7 kB / 413.3 MB, free: 21.81 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.203e-05/0.2765, allocations: 116.4 kB / 413.4 MB, free: 21.69 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.95e-05/0.2766, allocations: 39.61 kB / 413.4 MB, free: 21.65 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.122e-05/0.2766, allocations: 4 kB / 413.4 MB, free: 21.64 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.602e-05/0.2767, allocations: 334.8 kB / 413.8 MB, free: 21.31 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001857/0.2768, allocations: 68.19 kB / 413.8 MB, free: 21.24 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002012/0.2771, allocations: 158.6 kB / 414 MB, free: 21.05 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002026/0.2773, allocations: 104.5 kB / 414.1 MB, free: 20.95 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.2773, allocations: 4 kB / 414.1 MB, free: 20.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005164/0.2778, allocations: 295.1 kB / 414.4 MB, free: 20.64 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.365e-05/0.2778, allocations: 33.69 kB / 414.4 MB, free: 20.6 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.2779, allocations: 7.984 kB / 414.4 MB, free: 20.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.2779, allocations: 7.953 kB / 414.4 MB, free: 20.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001959/0.2781, allocations: 43.97 kB / 414.5 MB, free: 20.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.2781, allocations: 7.938 kB / 414.5 MB, free: 20.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001676/0.2783, allocations: 35.83 kB / 414.5 MB, free: 20.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.359e-05/0.2783, allocations: 15.98 kB / 414.5 MB, free: 20.48 MB / 298.7 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.0001332/0.2784, allocations: 149.5 kB / 414.7 MB, free: 20.33 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000158/0.2786, allocations: 105.4 kB / 414.8 MB, free: 20.22 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.326e-05/0.2787, allocations: 20.72 kB / 414.8 MB, free: 20.19 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.2787, allocations: 3.953 kB / 414.8 MB, free: 20.19 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.2787, allocations: 0 / 414.8 MB, free: 20.19 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.2787, allocations: 4 kB / 414.8 MB, free: 20.18 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000619/0.2793, allocations: 0.4905 MB / 415.3 MB, free: 19.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.2794, allocations: 3.938 kB / 415.3 MB, free: 19.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000179/0.2795, allocations: 51.91 kB / 415.3 MB, free: 19.58 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.2796, allocations: 3.953 kB / 415.4 MB, free: 19.58 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.832e-05/0.2796, allocations: 7.984 kB / 415.4 MB, free: 19.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.2796, allocations: 0 / 415.4 MB, free: 19.57 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.2796, allocations: 0 / 415.4 MB, free: 19.57 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005049/0.2801, allocations: 337.6 kB / 415.7 MB, free: 19.22 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.829e-05/0.2802, allocations: 96.86 kB / 415.8 MB, free: 19.11 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.575e-05/0.2802, allocations: 7.953 kB / 415.8 MB, free: 19.1 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00018/0.2804, allocations: 31.97 kB / 415.8 MB, free: 19.07 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.617e-05/0.2805, allocations: 11.98 kB / 415.8 MB, free: 19.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.934e-05/0.2805, allocations: 11.98 kB / 415.8 MB, free: 19.05 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.99e-05/0.2806, allocations: 110.6 kB / 416 MB, free: 18.94 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2806, allocations: 0 / 416 MB, free: 18.94 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002739/0.2809, allocations: 39.84 kB / 416 MB, free: 18.9 MB / 298.7 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.0001527/0.281, allocations: 111.2 kB / 416.1 MB, free: 18.79 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005083/0.2815, allocations: 247.8 kB / 416.3 MB, free: 18.53 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.2816, allocations: 8.062 kB / 416.4 MB, free: 18.52 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001791/0.2817, allocations: 63.91 kB / 416.4 MB, free: 18.46 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004303/0.2822, allocations: 76.58 kB / 416.5 MB, free: 18.39 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000603/0.2828, allocations: 393.1 kB / 416.9 MB, free: 17.97 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001892/0.283, allocations: 0.7286 MB / 417.6 MB, free: 17.21 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.438e-05/0.2831, allocations: 27.42 kB / 417.6 MB, free: 17.19 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2831, allocations: 0 / 417.6 MB, free: 17.19 MB / 298.7 MB Notification: Performance of Templates: time 0.003628/0.2867, allocations: 2.125 MB / 419.8 MB, free: 15.07 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_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,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