Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007476/0.0007476, allocations: 94.56 kB / 17.31 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007804/0.0007804, allocations: 179.9 kB / 18.21 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.283/1.283, allocations: 223.3 MB / 242.3 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002249/0.0002249, allocations: 7.938 kB / 302.1 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07458/0.07482, allocations: 50.42 MB / 352.5 MB, free: 3.457 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.001945/0.07679, allocations: 1.664 MB / 354.2 MB, free: 1.773 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009833/0.07779, allocations: 0.6155 MB / 354.8 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.737e-05/0.0779, allocations: 7.938 kB / 354.8 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.126e-05/0.07794, allocations: 11.86 kB / 354.8 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.698e-05/0.07804, allocations: 15.86 kB / 354.8 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003506/0.0784, allocations: 99.78 kB / 354.9 MB, free: 1.02 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001926/0.0786, allocations: 184 kB / 355.1 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000182/0.07879, allocations: 104.3 kB / 355.2 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001318/0.07893, allocations: 55.72 kB / 355.2 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001029/0.07904, allocations: 67.61 kB / 355.3 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.57e-05/0.07908, allocations: 8 kB / 355.3 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.769e-05/0.0791, allocations: 4 kB / 355.3 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.643e-05/0.07914, allocations: 31.84 kB / 355.4 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.834e-05/0.07923, allocations: 85.3 kB / 355.4 MB, free: 496 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001582/0.07939, allocations: 151.9 kB / 355.6 MB, free: 344 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.0794, allocations: 7.938 kB / 355.6 MB, free: 336 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.07941, allocations: 4 kB / 355.6 MB, free: 332 kB / 286.1 MB Notification: Performance of Transformations before backend: time 3.417e-06/0.07942, allocations: 4 kB / 355.6 MB, free: 328 kB / 286.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.0007361/0.08016, allocations: 494.8 kB / 356.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.0802, allocations: 12.03 kB / 356.1 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.068e-05/0.08027, allocations: 20.66 kB / 356.1 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002194/0.08049, allocations: 236.5 kB / 356.3 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.28e-05/0.08056, allocations: 42.59 kB / 356.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.311e-05/0.0806, allocations: 23.88 kB / 356.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006877/0.0813, allocations: 335 kB / 356.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.08132, allocations: 0 / 356.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.182e-05/0.08135, allocations: 8 kB / 356.7 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.08136, allocations: 4 kB / 356.8 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004548/0.08182, allocations: 151.8 kB / 356.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006311/0.08246, allocations: 469.2 kB / 357.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005158/0.08299, allocations: 213.1 kB / 357.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000269/0.08327, allocations: 113.6 kB / 357.7 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.548e-05/0.08331, allocations: 0 / 357.7 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000315/0.08363, allocations: 131.5 kB / 357.8 MB, free: 13.9 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.693e-06/0.08364, allocations: 0 / 357.8 MB, free: 13.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008247/0.08447, allocations: 297.4 kB / 358.1 MB, free: 13.61 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.143e-05/0.08455, allocations: 96.94 kB / 358.2 MB, free: 13.49 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001119/0.08467, allocations: 152.4 kB / 358.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.111e-05/0.08471, allocations: 37.7 kB / 358.4 MB, free: 13.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.102e-05/0.08477, allocations: 112.4 kB / 358.5 MB, free: 13.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.864e-05/0.08482, allocations: 43.53 kB / 358.5 MB, free: 13.13 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.071e-05/0.08487, allocations: 29.66 kB / 358.6 MB, free: 13.1 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.839e-05/0.08497, allocations: 330.8 kB / 358.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002186/0.0852, allocations: 68.19 kB / 358.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002493/0.08546, allocations: 152.5 kB / 359.1 MB, free: 12.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004432/0.08591, allocations: 254.8 kB / 359.3 MB, free: 12.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.08592, allocations: 0 / 359.3 MB, free: 12.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005863/0.08651, allocations: 291 kB / 359.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.419e-05/0.08656, allocations: 37.69 kB / 359.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.08657, allocations: 4 kB / 359.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.08659, allocations: 4 kB / 359.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002028/0.0868, allocations: 51.91 kB / 359.7 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.08682, allocations: 12.03 kB / 359.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001881/0.08701, allocations: 31.83 kB / 359.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.51e-05/0.08705, allocations: 15.98 kB / 359.8 MB, free: 11.77 MB / 302.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.0001179/0.08717, allocations: 137.8 kB / 359.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001858/0.08736, allocations: 109.4 kB / 360 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.709e-05/0.08743, allocations: 20.72 kB / 360 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.08744, allocations: 4 kB / 360 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.08745, allocations: 3.938 kB / 360.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.08746, allocations: 7.984 kB / 360.1 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000711/0.08818, allocations: 0.4984 MB / 360.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.0882, allocations: 0 / 360.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001951/0.0884, allocations: 47.89 kB / 360.6 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/0.08841, allocations: 7.938 kB / 360.6 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.586e-05/0.08844, allocations: 7.938 kB / 360.6 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.08844, allocations: 0 / 360.6 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.08845, allocations: 4 kB / 360.6 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005746/0.08903, allocations: 340 kB / 361 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.076e-05/0.08909, allocations: 88.92 kB / 361 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.184e-05/0.08912, allocations: 11.94 kB / 361.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001979/0.08933, allocations: 23.97 kB / 361.1 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.676e-05/0.08939, allocations: 11.98 kB / 361.1 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.911e-05/0.08942, allocations: 11.98 kB / 361.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.795e-05/0.08949, allocations: 108.4 kB / 361.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.0895, allocations: 0 / 361.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000307/0.08981, allocations: 47.84 kB / 361.3 MB, free: 10.18 MB / 302.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 9.688e-05/0.08992, allocations: 111.2 kB / 361.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000562/0.09049, allocations: 255.1 kB / 361.6 MB, free: 9.805 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.0905, allocations: 3.938 kB / 361.6 MB, free: 9.801 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001994/0.09071, allocations: 67.91 kB / 361.7 MB, free: 9.734 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004156/0.09113, allocations: 68.56 kB / 361.8 MB, free: 9.668 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006549/0.0918, allocations: 417 kB / 362.2 MB, free: 9.223 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002348/0.09205, allocations: 0.7247 MB / 362.9 MB, free: 8.473 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.819e-05/0.09212, allocations: 19.44 kB / 362.9 MB, free: 8.453 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.09213, allocations: 4 kB / 362.9 MB, free: 8.449 MB / 302.1 MB Notification: Performance of Templates: time 0.003748/0.09588, allocations: 2.137 MB / 365 MB, free: 6.324 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches