Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001611/0.001611, allocations: 116.4 kB / 20.43 MB, free: 1.457 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.001526/0.001526, allocations: 214.3 kB / 23.75 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 230.5 MB / 257.4 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002013/0.002013, allocations: 63.89 kB / 377.8 MB, free: 3.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2401/0.2421, allocations: 53.41 MB / 431.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003536/0.2456, allocations: 2.018 MB / 433.2 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001397/0.247, allocations: 0.7128 MB / 433.9 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001401/0.2472, allocations: 7.938 kB / 433.9 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.362e-05/0.2472, allocations: 15.8 kB / 433.9 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001284/0.2474, allocations: 31.72 kB / 434 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004691/0.2478, allocations: 119.7 kB / 434.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002818/0.2481, allocations: 208 kB / 434.3 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001796/0.2483, allocations: 72.83 kB / 434.4 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002278/0.2485, allocations: 91.64 kB / 434.4 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001429/0.2487, allocations: 95.59 kB / 434.5 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.878e-05/0.2487, allocations: 20 kB / 434.6 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.466e-05/0.2488, allocations: 20 kB / 434.6 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.996e-05/0.2488, allocations: 51.83 kB / 434.6 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.722e-05/0.2489, allocations: 83.53 kB / 434.7 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003142/0.2492, allocations: 227.5 kB / 434.9 MB, free: 2.934 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.2492, allocations: 3.938 kB / 434.9 MB, free: 2.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2492, allocations: 3.938 kB / 434.9 MB, free: 2.926 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.2492, allocations: 0 / 434.9 MB, free: 2.926 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.0008695/0.2501, allocations: 469.3 kB / 435.4 MB, free: 2.422 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.2501, allocations: 8.031 kB / 435.4 MB, free: 2.414 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.941e-05/0.2502, allocations: 54.73 kB / 435.5 MB, free: 2.352 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000164/0.2504, allocations: 36.78 kB / 435.5 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003234/0.2507, allocations: 186.3 kB / 435.7 MB, free: 2.113 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.728e-05/0.2508, allocations: 68.05 kB / 435.7 MB, free: 2.035 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.351e-05/0.2508, allocations: 16 kB / 435.8 MB, free: 2.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007176/0.2515, allocations: 333.3 kB / 436.1 MB, free: 1.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.2515, allocations: 0 / 436.1 MB, free: 1.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.991e-05/0.2516, allocations: 4 kB / 436.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.2516, allocations: 4 kB / 436.1 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004128/0.252, allocations: 131.9 kB / 436.2 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006866/0.2527, allocations: 432.4 kB / 436.6 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005023/0.2532, allocations: 197.1 kB / 436.8 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002534/0.2534, allocations: 97.59 kB / 436.9 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.72e-05/0.2534, allocations: 12 kB / 436.9 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003044/0.2537, allocations: 119.4 kB / 437.1 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.653e-06/0.2537, allocations: 0 / 437.1 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007855/0.2545, allocations: 285.3 kB / 437.3 MB, free: 344 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.69e-05/0.2546, allocations: 85.09 kB / 437.4 MB, free: 240 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001413/0.2548, allocations: 157.5 kB / 437.6 MB, free: 72 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.828e-05/0.2548, allocations: 25.7 kB / 437.6 MB, free: 40 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.2549, allocations: 120.5 kB / 437.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.755e-05/0.2549, allocations: 35.67 kB / 437.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.08e-05/0.255, allocations: 49.7 kB / 437.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.2552, allocations: 330.8 kB / 438.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001977/0.2554, allocations: 64.19 kB / 438.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002539/0.2556, allocations: 147.4 kB / 438.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000437/0.256, allocations: 234.9 kB / 438.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.256, allocations: 0 / 438.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005745/0.2566, allocations: 274.9 kB / 438.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.937e-05/0.2567, allocations: 41.62 kB / 438.9 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.2567, allocations: 0 / 438.9 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.2567, allocations: 4.344 kB / 438.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002/0.2569, allocations: 51.91 kB / 438.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.2569, allocations: 7.938 kB / 438.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000171/0.2571, allocations: 31.81 kB / 439 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.198e-05/0.2571, allocations: 12 kB / 439 MB, free: 14.55 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.0001557/0.2572, allocations: 141.8 kB / 439.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000195/0.2574, allocations: 105.5 kB / 439.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.15e-05/0.2575, allocations: 20.72 kB / 439.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.2575, allocations: 8 kB / 439.2 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.2575, allocations: 0 / 439.2 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.2575, allocations: 11.92 kB / 439.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007354/0.2583, allocations: 466.3 kB / 439.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.2583, allocations: 0 / 439.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001843/0.2584, allocations: 39.97 kB / 439.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.189e-06/0.2584, allocations: 7.984 kB / 439.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.873e-05/0.2585, allocations: 11.88 kB / 439.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.2585, allocations: 0 / 439.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2585, allocations: 0 / 439.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005858/0.2591, allocations: 324 kB / 440.1 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.502e-05/0.2591, allocations: 19.84 kB / 440.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.409e-05/0.2591, allocations: 11.94 kB / 440.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001806/0.2593, allocations: 23.97 kB / 440.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.229e-05/0.2594, allocations: 11.98 kB / 440.1 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.799e-05/0.2594, allocations: 7.984 kB / 440.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.782e-05/0.2595, allocations: 120.1 kB / 440.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2595, allocations: 0 / 440.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000299/0.2598, allocations: 32 kB / 440.3 MB, free: 13.12 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.001207/0.261, allocations: 0.9513 MB / 441.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000563/0.2615, allocations: 250.8 kB / 441.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2615, allocations: 0 / 441.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001834/0.2617, allocations: 59.95 kB / 441.6 MB, free: 11.83 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004383/0.2622, allocations: 64.61 kB / 441.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003018/0.2652, allocations: 2.16 MB / 443.8 MB, free: 9.445 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000369/0.2656, allocations: 0.7283 MB / 444.5 MB, free: 8.688 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.869e-05/0.2656, allocations: 17.48 kB / 444.5 MB, free: 8.672 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.2657, allocations: 55.42 kB / 444.6 MB, free: 8.617 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2657, allocations: 0 / 444.6 MB, free: 8.617 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03138/0.2971, allocations: 4.033 MB / 448.6 MB, free: 4.707 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.71/11.01, allocations: 7.938 kB / 448.6 MB, free: 4.699 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample_fmu --startTime=0 --stopTime=2 --stepSize=0.000392542 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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:angle_input.amplitude,angle_input.continuous,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 [Calling sys.exit(0), Time elapsed: 13.398790634935722]