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.001243/0.001243, allocations: 82.59 kB / 21.43 MB, free: 3.07 MB / 18.57 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.001215/0.001215, allocations: 171.9 kB / 24.82 MB, free: 9.273 MB / 18.57 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 0.965/0.965, allocations: 177 MB / 205.1 MB, free: 5.465 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5095,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5095,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.074e-06/2.074e-06, allocations: 0 / 273.3 MB, free: 1.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.212e-05/2.42e-05, allocations: 2.312 kB / 273.3 MB, free: 1.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002704/0.002729, allocations: 1.998 MB / 275.3 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001185/0.003913, allocations: 0.697 MB / 276 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001438/0.004057, allocations: 7.938 kB / 276 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001036/0.004161, allocations: 15.8 kB / 276 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001291/0.00429, allocations: 23.69 kB / 276.1 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004126/0.004702, allocations: 119.6 kB / 276.2 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001776/0.00488, allocations: 216 kB / 276.4 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001491/0.005029, allocations: 68.88 kB / 276.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002309/0.00526, allocations: 135.6 kB / 276.6 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.696e-05/0.005347, allocations: 67.78 kB / 276.7 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.83e-05/0.005375, allocations: 20 kB / 276.7 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.447e-05/0.00542, allocations: 24 kB / 276.7 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.402e-05/0.005454, allocations: 47.81 kB / 276.7 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.511e-05/0.005499, allocations: 55.89 kB / 276.8 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000172/0.005671, allocations: 151.4 kB / 276.9 MB, free: 13.58 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.005674, allocations: 0 / 276.9 MB, free: 13.58 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.005675, allocations: 4 kB / 276.9 MB, free: 13.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.476e-06/0.005679, allocations: 0 / 276.9 MB, free: 13.57 MB / 266.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.0005785/0.006257, allocations: 0.5464 MB / 277.5 MB, free: 12.98 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.006298, allocations: 12.03 kB / 277.5 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001341/0.006432, allocations: 40.73 kB / 277.5 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001994/0.006632, allocations: 188.8 kB / 277.7 MB, free: 12.71 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.986e-05/0.006692, allocations: 68.23 kB / 277.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.236e-05/0.006714, allocations: 28.36 kB / 277.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004716/0.007185, allocations: 295.7 kB / 278.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.007198, allocations: 3.938 kB / 278.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.121e-05/0.007219, allocations: 8 kB / 278.1 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.218e-06/0.007229, allocations: 8 kB / 278.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001054/0.007334, allocations: 39.95 kB / 278.2 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005517/0.007886, allocations: 391.6 kB / 278.6 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002367/0.008122, allocations: 130.1 kB / 278.7 MB, free: 11.67 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.48e-05/0.008207, allocations: 63.53 kB / 278.7 MB, free: 11.6 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.823e-05/0.008235, allocations: 16.11 kB / 278.8 MB, free: 11.58 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001512/0.008387, allocations: 118.6 kB / 278.9 MB, free: 11.45 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 2.315e-06/0.008389, allocations: 0 / 278.9 MB, free: 11.45 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003451/0.008734, allocations: 169.4 kB / 279 MB, free: 11.27 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.6e-05/0.0088, allocations: 85.11 kB / 279.1 MB, free: 11.17 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001344/0.008934, allocations: 209.8 kB / 279.3 MB, free: 10.95 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.008958, allocations: 33.7 kB / 279.4 MB, free: 10.91 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.985e-05/0.009048, allocations: 167.2 kB / 279.5 MB, free: 10.74 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.042e-05/0.009079, allocations: 35.73 kB / 279.6 MB, free: 10.71 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.342e-05/0.009142, allocations: 35.36 kB / 279.6 MB, free: 10.66 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.009271, allocations: 0.5001 MB / 280.1 MB, free: 10.15 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.717e-05/0.009318, allocations: 45.69 kB / 280.1 MB, free: 10.1 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.801e-05/0.009366, allocations: 71.8 kB / 280.2 MB, free: 10.02 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.172e-05/0.009438, allocations: 80.69 kB / 280.3 MB, free: 9.93 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.00944, allocations: 0 / 280.3 MB, free: 9.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001765/0.009616, allocations: 172.8 kB / 280.5 MB, free: 9.742 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.398e-05/0.00966, allocations: 37.75 kB / 280.5 MB, free: 9.699 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.009666, allocations: 4 kB / 280.5 MB, free: 9.695 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.009679, allocations: 0 / 280.5 MB, free: 9.695 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.009782, allocations: 23.98 kB / 280.5 MB, free: 9.672 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.626e-06/0.009786, allocations: 0 / 280.5 MB, free: 9.672 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.365e-05/0.009859, allocations: 27.88 kB / 280.5 MB, free: 9.645 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.366e-06/0.009868, allocations: 0 / 280.5 MB, free: 9.645 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 ($CLKPRE.rotationalClock.changed.u,rotationalClock.changed.u,$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 (15): * Single equations (assignments): 14 * 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 9.87e-05/0.009967, allocations: 176.5 kB / 280.7 MB, free: 9.461 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.01007, allocations: 97.52 kB / 280.8 MB, free: 9.359 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.145e-05/0.01011, allocations: 28.77 kB / 280.8 MB, free: 9.332 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.01012, allocations: 0 / 280.8 MB, free: 9.332 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.01012, allocations: 4 kB / 280.8 MB, free: 9.328 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.01012, allocations: 0 / 280.8 MB, free: 9.328 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003158/0.01044, allocations: 374.7 kB / 281.2 MB, free: 8.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/0.01045, allocations: 7.984 kB / 281.2 MB, free: 8.922 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.598e-05/0.01053, allocations: 35.91 kB / 281.3 MB, free: 8.887 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.01054, allocations: 0 / 281.3 MB, free: 8.887 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.01055, allocations: 11.98 kB / 281.3 MB, free: 8.875 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.01055, allocations: 0 / 281.3 MB, free: 8.875 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.01056, allocations: 8 kB / 281.3 MB, free: 8.867 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001598/0.01071, allocations: 255.5 kB / 281.5 MB, free: 8.594 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.759e-05/0.01073, allocations: 15.91 kB / 281.5 MB, free: 8.578 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.01e-05/0.01075, allocations: 4 kB / 281.5 MB, free: 8.574 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.241e-05/0.01083, allocations: 15.98 kB / 281.6 MB, free: 8.559 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.548e-05/0.01088, allocations: 19.91 kB / 281.6 MB, free: 8.539 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.939e-06/0.01089, allocations: 7.984 kB / 281.6 MB, free: 8.531 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.087e-05/0.01094, allocations: 145.4 kB / 281.7 MB, free: 8.391 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01094, allocations: 0 / 281.7 MB, free: 8.391 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001632/0.0111, allocations: 39.89 kB / 281.8 MB, free: 8.352 MB / 266.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.663e-05/0.0112, allocations: 111.2 kB / 281.9 MB, free: 8.234 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001667/0.01137, allocations: 160.6 kB / 282 MB, free: 8.055 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.644e-06/0.01137, allocations: 0 / 282 MB, free: 8.055 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.407e-05/0.01141, allocations: 39.59 kB / 282.1 MB, free: 8.012 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002604/0.01167, allocations: 59.53 kB / 282.1 MB, free: 7.953 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005534/0.01223, allocations: 312 kB / 282.4 MB, free: 7.613 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.485e-05/0.01228, allocations: 87.77 kB / 282.5 MB, free: 7.508 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.11e-05/0.01232, allocations: 5.156 kB / 282.5 MB, free: 7.504 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.897e-05/0.01242, allocations: 102.2 kB / 282.6 MB, free: 7.402 MB / 266.7 MB Notification: Performance of SimCode: time 9.42e-07/0.01242, allocations: 0 / 282.6 MB, free: 7.402 MB / 266.7 MB Notification: Performance of Templates: time 0.003928/0.01635, allocations: 2.078 MB / 284.7 MB, free: 5.359 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile [Timeout 660] (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 & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.802538518793881]