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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00163/0.00163, allocations: 116.4 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001828/0.001828, allocations: 204 kB / 19.4 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.423/1.423, allocations: 227.7 MB / 247.9 MB, free: 10.18 MB / 206.1 MB 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.001942/0.001942, allocations: 67.89 kB / 359.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2446/0.2465, allocations: 50.54 MB / 410.2 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003246/0.2497, allocations: 1.994 MB / 412.2 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.251, allocations: 0.7012 MB / 412.9 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001074/0.2511, allocations: 4 kB / 412.9 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.365e-05/0.2511, allocations: 19.73 kB / 412.9 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001181/0.2512, allocations: 31.72 kB / 412.9 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004304/0.2517, allocations: 115.7 kB / 413.1 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002689/0.2519, allocations: 212 kB / 413.3 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001802/0.2521, allocations: 80.3 kB / 413.3 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002014/0.2523, allocations: 87.7 kB / 413.4 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001285/0.2525, allocations: 87.59 kB / 413.5 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.361e-05/0.2525, allocations: 20 kB / 413.5 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.393e-05/0.2525, allocations: 24 kB / 413.6 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.443e-05/0.2526, allocations: 47.83 kB / 413.6 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.749e-05/0.2527, allocations: 83.53 kB / 413.7 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002958/0.253, allocations: 226.9 kB / 413.9 MB, free: 13.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.253, allocations: 0 / 413.9 MB, free: 13.72 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.253, allocations: 0 / 413.9 MB, free: 13.72 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.578e-06/0.253, allocations: 4 kB / 413.9 MB, free: 13.72 MB / 334.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.000884/0.2539, allocations: 0.5297 MB / 414.4 MB, free: 13.12 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.2539, allocations: 12.03 kB / 414.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001637/0.2541, allocations: 32.78 kB / 414.5 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003282/0.2544, allocations: 237.9 kB / 414.7 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.111e-05/0.2545, allocations: 46.53 kB / 414.8 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.818e-05/0.2545, allocations: 19.94 kB / 414.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000706/0.2552, allocations: 331 kB / 415.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.2552, allocations: 0 / 415.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.39e-05/0.2552, allocations: 4 kB / 415.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.647e-06/0.2553, allocations: 4 kB / 415.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004397/0.2557, allocations: 139.8 kB / 415.2 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007071/0.2564, allocations: 465.3 kB / 415.7 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005063/0.2569, allocations: 189.1 kB / 415.9 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002599/0.2572, allocations: 93.66 kB / 416 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.78e-05/0.2572, allocations: 12.06 kB / 416 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002968/0.2575, allocations: 123.4 kB / 416.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.683e-06/0.2575, allocations: 0 / 416.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.000819/0.2583, allocations: 286 kB / 416.4 MB, free: 11.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.25e-05/0.2584, allocations: 93.09 kB / 416.5 MB, free: 10.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001432/0.2585, allocations: 147.3 kB / 416.6 MB, free: 10.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.174e-05/0.2586, allocations: 33.7 kB / 416.7 MB, free: 10.71 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.914e-05/0.2586, allocations: 116.5 kB / 416.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.175e-05/0.2587, allocations: 39.73 kB / 416.8 MB, free: 10.56 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.856e-05/0.2588, allocations: 49.64 kB / 416.9 MB, free: 10.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.2589, allocations: 334.8 kB / 417.2 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002006/0.2591, allocations: 64.17 kB / 417.2 MB, free: 10.11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002524/0.2594, allocations: 142.7 kB / 417.4 MB, free: 9.93 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004553/0.2598, allocations: 235.7 kB / 417.6 MB, free: 9.656 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.2598, allocations: 0 / 417.6 MB, free: 9.656 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005795/0.2604, allocations: 274.9 kB / 417.9 MB, free: 9.375 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.86e-05/0.2604, allocations: 37.69 kB / 417.9 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.2604, allocations: 4 kB / 417.9 MB, free: 9.328 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.2605, allocations: 4.344 kB / 417.9 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001964/0.2607, allocations: 47.91 kB / 418 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.2607, allocations: 4 kB / 418 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001726/0.2608, allocations: 27.94 kB / 418 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.321e-05/0.2609, allocations: 15.92 kB / 418 MB, free: 9.23 MB / 334.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.0001442/0.261, allocations: 141.7 kB / 418.2 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001886/0.2612, allocations: 105.5 kB / 418.3 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.028e-05/0.2613, allocations: 16.72 kB / 418.3 MB, free: 8.949 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.2613, allocations: 8 kB / 418.3 MB, free: 8.941 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.2613, allocations: 0 / 418.3 MB, free: 8.941 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/0.2613, allocations: 11.92 kB / 418.3 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007505/0.262, allocations: 494.2 kB / 418.8 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.262, allocations: 0 / 418.8 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000195/0.2622, allocations: 43.89 kB / 418.8 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.2622, allocations: 8 kB / 418.8 MB, free: 8.34 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.783e-05/0.2622, allocations: 4 kB / 418.8 MB, free: 8.336 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.2622, allocations: 3.938 kB / 418.8 MB, free: 8.332 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2622, allocations: 4 kB / 418.8 MB, free: 8.328 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005845/0.2628, allocations: 323.7 kB / 419.2 MB, free: 7.996 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.692e-05/0.2629, allocations: 97.02 kB / 419.3 MB, free: 7.883 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.377e-05/0.2629, allocations: 11.98 kB / 419.3 MB, free: 7.871 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001884/0.2631, allocations: 23.92 kB / 419.3 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.218e-05/0.2632, allocations: 15.92 kB / 419.3 MB, free: 7.832 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.875e-05/0.2632, allocations: 11.98 kB / 419.3 MB, free: 7.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.139e-05/0.2633, allocations: 103.3 kB / 419.4 MB, free: 7.719 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2633, allocations: 0 / 419.4 MB, free: 7.719 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000305/0.2636, allocations: 43.92 kB / 419.5 MB, free: 7.676 MB / 334.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.0001344/0.2637, allocations: 119.2 kB / 419.6 MB, free: 7.551 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005634/0.2643, allocations: 231.2 kB / 419.8 MB, free: 7.312 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.2643, allocations: 0 / 419.8 MB, free: 7.312 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001977/0.2645, allocations: 60.58 kB / 419.9 MB, free: 7.254 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004214/0.2649, allocations: 67.92 kB / 419.9 MB, free: 7.188 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006483/0.2656, allocations: 325.9 kB / 420.2 MB, free: 6.84 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003622/0.2659, allocations: 0.7322 MB / 421 MB, free: 6.078 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.902e-05/0.266, allocations: 13.55 kB / 421 MB, free: 6.062 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.075e-05/0.266, allocations: 23.42 kB / 421 MB, free: 6.043 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.266, allocations: 0 / 421 MB, free: 6.043 MB / 334.1 MB Notification: Performance of Templates: time 0.005319/0.2714, allocations: 1.977 MB / 423 MB, free: 4.094 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile (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 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_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.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