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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009984/0.0009984, allocations: 196 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 226.5 MB / 244.7 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007838/0.0007836, allocations: 104.7 kB / 296.7 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002697/0.0002702, allocations: 11.92 kB / 356.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2829/0.2832, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.00186/0.2851, allocations: 1.641 MB / 409.8 MB, free: 26.03 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008808/0.286, allocations: 0.6186 MB / 410.4 MB, free: 25.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/0.2862, allocations: 4 kB / 410.4 MB, free: 25.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.639e-05/0.2862, allocations: 11.86 kB / 410.4 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001193/0.2863, allocations: 21.12 kB / 410.4 MB, free: 25.37 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003559/0.2867, allocations: 87.84 kB / 410.5 MB, free: 25.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001687/0.2869, allocations: 173.8 kB / 410.7 MB, free: 25.12 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001809/0.287, allocations: 92.05 kB / 410.8 MB, free: 25.03 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001677/0.2872, allocations: 71.69 kB / 410.8 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.305e-05/0.2873, allocations: 56.8 kB / 410.9 MB, free: 24.9 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.386e-05/0.2874, allocations: 7.938 kB / 410.9 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.657e-05/0.2874, allocations: 16.66 kB / 410.9 MB, free: 24.88 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.173e-05/0.2874, allocations: 23.89 kB / 410.9 MB, free: 24.86 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.352e-05/0.2875, allocations: 89.98 kB / 411 MB, free: 24.76 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001578/0.2877, allocations: 156.8 kB / 411.2 MB, free: 24.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.2877, allocations: 2.344 kB / 411.2 MB, free: 24.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.2877, allocations: 0 / 411.2 MB, free: 24.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.2877, allocations: 0 / 411.2 MB, free: 24.61 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.0007012/0.2884, allocations: 0.4961 MB / 411.7 MB, free: 24.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.2885, allocations: 9.281 kB / 411.7 MB, free: 24.04 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.755e-05/0.2885, allocations: 58.67 kB / 411.8 MB, free: 23.98 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001428/0.2887, allocations: 29.84 kB / 411.8 MB, free: 23.95 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001954/0.2889, allocations: 239.9 kB / 412 MB, free: 23.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.297e-05/0.289, allocations: 47.8 kB / 412.1 MB, free: 23.63 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.522e-05/0.289, allocations: 12 kB / 412.1 MB, free: 23.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006719/0.2897, allocations: 327.1 kB / 412.4 MB, free: 23.28 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.2897, allocations: 0 / 412.4 MB, free: 23.28 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.133e-05/0.2897, allocations: 4 kB / 412.4 MB, free: 23.28 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.2897, allocations: 8 kB / 412.4 MB, free: 23.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003907/0.2901, allocations: 151.8 kB / 412.6 MB, free: 23.12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006012/0.2907, allocations: 461.3 kB / 413 MB, free: 22.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004445/0.2912, allocations: 219.8 kB / 413.2 MB, free: 22.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002212/0.2914, allocations: 109.7 kB / 413.3 MB, free: 22.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.872e-05/0.2915, allocations: 8 kB / 413.3 MB, free: 22.27 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003059/0.2918, allocations: 131.4 kB / 413.5 MB, free: 22.12 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.783e-06/0.2918, allocations: 4 kB / 413.5 MB, free: 22.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007266/0.2925, allocations: 303.2 kB / 413.8 MB, free: 21.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.93e-05/0.2926, allocations: 85.11 kB / 413.8 MB, free: 21.72 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.88e-05/0.2927, allocations: 150.3 kB / 414 MB, free: 21.56 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.952e-05/0.2927, allocations: 29.7 kB / 414 MB, free: 21.52 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.929e-05/0.2928, allocations: 120.5 kB / 414.1 MB, free: 21.4 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.566e-05/0.2928, allocations: 39.53 kB / 414.2 MB, free: 21.36 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.588e-06/0.2928, allocations: 8 kB / 414.2 MB, free: 21.36 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.587e-05/0.2929, allocations: 330.8 kB / 414.5 MB, free: 21.02 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001768/0.293, allocations: 68.19 kB / 414.6 MB, free: 20.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001889/0.2932, allocations: 150.7 kB / 414.7 MB, free: 20.77 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003671/0.2936, allocations: 255.6 kB / 415 MB, free: 20.48 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.2936, allocations: 0 / 415 MB, free: 20.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004926/0.2941, allocations: 291.1 kB / 415.3 MB, free: 20.19 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.161e-05/0.2942, allocations: 39.73 kB / 415.3 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.2942, allocations: 7.984 kB / 415.3 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.2942, allocations: 7.984 kB / 415.3 MB, free: 20.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001855/0.2944, allocations: 47.91 kB / 415.4 MB, free: 20.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/0.2944, allocations: 7.938 kB / 415.4 MB, free: 20.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001598/0.2946, allocations: 31.89 kB / 415.4 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.988e-05/0.2946, allocations: 8 kB / 415.4 MB, free: 20.04 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.0001111/0.2947, allocations: 141.7 kB / 415.5 MB, free: 19.89 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001544/0.2949, allocations: 109.4 kB / 415.6 MB, free: 19.77 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.548e-05/0.295, allocations: 24.7 kB / 415.7 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.295, allocations: 4 kB / 415.7 MB, free: 19.74 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.295, allocations: 3.938 kB / 415.7 MB, free: 19.74 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.295, allocations: 0 / 415.7 MB, free: 19.74 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006255/0.2956, allocations: 0.5068 MB / 416.2 MB, free: 19.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.2956, allocations: 4 kB / 416.2 MB, free: 19.17 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001755/0.2958, allocations: 39.97 kB / 416.2 MB, free: 19.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.2958, allocations: 7.938 kB / 416.2 MB, free: 19.12 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.963e-05/0.2959, allocations: 7.984 kB / 416.2 MB, free: 19.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.2959, allocations: 4 kB / 416.3 MB, free: 19.11 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2959, allocations: 0 / 416.3 MB, free: 19.11 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005054/0.2964, allocations: 333.6 kB / 416.6 MB, free: 18.77 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.547e-05/0.2964, allocations: 96.84 kB / 416.7 MB, free: 18.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.091e-05/0.2965, allocations: 4 kB / 416.7 MB, free: 18.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001754/0.2966, allocations: 27.98 kB / 416.7 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.777e-05/0.2967, allocations: 15.97 kB / 416.7 MB, free: 18.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.866e-05/0.2968, allocations: 8 kB / 416.7 MB, free: 18.6 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.159e-05/0.2968, allocations: 109.7 kB / 416.8 MB, free: 18.5 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2968, allocations: 0 / 416.8 MB, free: 18.5 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002696/0.2971, allocations: 43.84 kB / 416.9 MB, free: 18.45 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.0009438/0.2981, allocations: 0.9885 MB / 417.9 MB, free: 17.44 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004945/0.2986, allocations: 259 kB / 418.1 MB, free: 17.17 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.2986, allocations: 0 / 418.1 MB, free: 17.17 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001707/0.2988, allocations: 67.91 kB / 418.2 MB, free: 17.11 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004318/0.2992, allocations: 60.62 kB / 418.2 MB, free: 17.05 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001623/0.3008, allocations: 1.083 MB / 419.3 MB, free: 15.88 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001828/0.301, allocations: 0.7401 MB / 420.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001023/0.3011, allocations: 51.47 kB / 420.1 MB, free: 15.06 MB / 298.7 MB Notification: Performance of SimCode: time 3e-07/0.3011, allocations: 0 / 420.1 MB, free: 15.06 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.714/3.015, allocations: 2.429 MB / 422.5 MB, free: 12.63 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu > 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/jenkins1/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.T_start,trigger_interval_input.T_width,trigger_interval_input.amplitude,trigger_interval_input.count,trigger_interval_input.nperiod,trigger_interval_input.offset,trigger_interval_input.period,trigger_interval_input.startTime,trigger_interval_input.width,trigger_interval_input.y