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.001263/0.001263, allocations: 107.3 kB / 17.74 MB, free: 5.359 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.001268/0.001268, allocations: 180.1 kB / 18.66 MB, free: 4.449 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.395/1.395, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 43.94 kB / 352 MB, free: 3.281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.247, allocations: 49.43 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.00319/0.2502, allocations: 1.982 MB / 403.4 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001049/0.2513, allocations: 0.631 MB / 404 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001225/0.2515, allocations: 4 kB / 404 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.354e-05/0.2515, allocations: 19.73 kB / 404 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001259/0.2517, allocations: 23.8 kB / 404.1 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004683/0.2522, allocations: 118.4 kB / 404.2 MB, free: 6.109 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002763/0.2524, allocations: 196 kB / 404.4 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002427/0.2527, allocations: 100.3 kB / 404.5 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001978/0.2529, allocations: 87.69 kB / 404.5 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001372/0.253, allocations: 87.61 kB / 404.6 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.83e-05/0.2531, allocations: 20 kB / 404.6 MB, free: 5.629 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.688e-05/0.2531, allocations: 24 kB / 404.7 MB, free: 5.605 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.795e-05/0.2532, allocations: 43.83 kB / 404.7 MB, free: 5.562 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.2533, allocations: 79.59 kB / 404.8 MB, free: 5.484 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003188/0.2537, allocations: 220.4 kB / 405 MB, free: 5.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.2537, allocations: 0 / 405 MB, free: 5.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.2537, allocations: 0 / 405 MB, free: 5.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.165e-06/0.2537, allocations: 0 / 405 MB, free: 5.27 MB / 318.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.001056/0.2548, allocations: 0.5258 MB / 405.5 MB, free: 4.684 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.2548, allocations: 16.03 kB / 405.5 MB, free: 4.668 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.176e-05/0.2549, allocations: 16.75 kB / 405.6 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000416/0.2553, allocations: 238 kB / 405.8 MB, free: 4.383 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.634e-05/0.2554, allocations: 42.53 kB / 405.8 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.899e-05/0.2554, allocations: 23.92 kB / 405.9 MB, free: 4.312 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007693/0.2562, allocations: 334.9 kB / 406.2 MB, free: 3.969 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.2562, allocations: 0 / 406.2 MB, free: 3.969 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.912e-05/0.2563, allocations: 8 kB / 406.2 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.2563, allocations: 0 / 406.2 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004394/0.2567, allocations: 139.8 kB / 406.3 MB, free: 3.824 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007592/0.2575, allocations: 453.3 kB / 406.8 MB, free: 3.328 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005138/0.258, allocations: 205.1 kB / 407 MB, free: 3.109 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002844/0.2583, allocations: 101.6 kB / 407.1 MB, free: 3.004 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.104e-05/0.2584, allocations: 12.06 kB / 407.1 MB, free: 2.992 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003033/0.2587, allocations: 111.3 kB / 407.2 MB, free: 2.871 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.633e-06/0.2587, allocations: 4 kB / 407.2 MB, free: 2.867 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008508/0.2596, allocations: 277.4 kB / 407.5 MB, free: 2.59 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.146e-05/0.2597, allocations: 93.09 kB / 407.6 MB, free: 2.48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001395/0.2598, allocations: 152.4 kB / 407.7 MB, free: 2.32 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.209e-05/0.2599, allocations: 29.7 kB / 407.7 MB, free: 2.285 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.22e-05/0.26, allocations: 120.4 kB / 407.9 MB, free: 2.164 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.833e-05/0.26, allocations: 47.47 kB / 407.9 MB, free: 2.117 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.2e-05/0.2601, allocations: 45.7 kB / 407.9 MB, free: 2.066 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.2603, allocations: 322.8 kB / 408.3 MB, free: 1.742 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002016/0.2605, allocations: 60.19 kB / 408.3 MB, free: 1.684 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002623/0.2608, allocations: 147.4 kB / 408.5 MB, free: 1.504 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004459/0.2612, allocations: 239.4 kB / 408.7 MB, free: 1.23 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.2612, allocations: 0 / 408.7 MB, free: 1.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005626/0.2618, allocations: 279.1 kB / 409 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.113e-05/0.2619, allocations: 33.7 kB / 409 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.864e-06/0.2619, allocations: 0 / 409 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.061e-05/0.2619, allocations: 4 kB / 409 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002064/0.2621, allocations: 47.91 kB / 409.1 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.294e-05/0.2621, allocations: 7.938 kB / 409.1 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000188/0.2623, allocations: 23.88 kB / 409.1 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.703e-05/0.2624, allocations: 20 kB / 409.1 MB, free: 0.8047 MB / 318.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.0001529/0.2625, allocations: 141.7 kB / 409.2 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001798/0.2627, allocations: 105.4 kB / 409.3 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.891e-05/0.2628, allocations: 28.69 kB / 409.4 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.2628, allocations: 7.938 kB / 409.4 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.2628, allocations: 3.938 kB / 409.4 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.2628, allocations: 0 / 409.4 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007855/0.2636, allocations: 499.3 kB / 409.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.2636, allocations: 0 / 409.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001895/0.2638, allocations: 39.91 kB / 409.9 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.2638, allocations: 7.875 kB / 409.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.92e-05/0.2639, allocations: 8 kB / 409.9 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.2639, allocations: 3.984 kB / 409.9 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.2639, allocations: 0 / 409.9 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005708/0.2644, allocations: 323.9 kB / 410.3 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.52e-05/0.2645, allocations: 92.86 kB / 410.3 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.27e-05/0.2646, allocations: 15.92 kB / 410.4 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000178/0.2648, allocations: 15.92 kB / 410.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.155e-05/0.2648, allocations: 15.98 kB / 410.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-05/0.2649, allocations: 11.98 kB / 410.4 MB, free: 15.39 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.869e-05/0.265, allocations: 113.9 kB / 410.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.265, allocations: 0 / 410.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002978/0.2653, allocations: 43.92 kB / 410.6 MB, free: 15.24 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.0001514/0.2654, allocations: 107.8 kB / 410.7 MB, free: 15.13 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005806/0.266, allocations: 247.8 kB / 410.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.266, allocations: 0 / 410.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002079/0.2662, allocations: 67.83 kB / 411 MB, free: 14.81 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004737/0.2667, allocations: 67.89 kB / 411 MB, free: 14.74 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007498/0.2675, allocations: 335.2 kB / 411.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003887/0.2679, allocations: 0.736 MB / 412.1 MB, free: 13.61 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.543e-05/0.268, allocations: 27.42 kB / 412.1 MB, free: 13.58 MB / 334.1 MB Notification: Performance of SimCode: time 6.11e-07/0.268, allocations: 3.938 kB / 412.1 MB, free: 13.57 MB / 334.1 MB Notification: Performance of Templates: time 0.004816/0.2728, allocations: 2.195 MB / 414.3 MB, free: 11.39 MB / 334.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