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.001361/0.001362, allocations: 103.6 kB / 17.59 MB, free: 5.422 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.001325/0.001326, allocations: 187.4 kB / 18.52 MB, free: 4.5 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.376/1.376, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001074/0.001074, allocations: 45.39 kB / 301.3 MB, free: 5.871 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1226, allocations: 49.45 MB / 350.7 MB, free: 4.418 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003666/0.1263, allocations: 1.97 MB / 352.7 MB, free: 2.422 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001231/0.1275, allocations: 0.6427 MB / 353.3 MB, free: 1.773 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001249/0.1277, allocations: 7.938 kB / 353.3 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.589e-05/0.1278, allocations: 15.8 kB / 353.4 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001172/0.1279, allocations: 19.73 kB / 353.4 MB, free: 1.73 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004382/0.1284, allocations: 113.9 kB / 353.5 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002597/0.1286, allocations: 212 kB / 353.7 MB, free: 1.414 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002246/0.1289, allocations: 96.3 kB / 353.8 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001785/0.129, allocations: 83.7 kB / 353.9 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001248/0.1292, allocations: 87.59 kB / 354 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.212e-05/0.1292, allocations: 20 kB / 354 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.21e-05/0.1293, allocations: 20 kB / 354 MB, free: 1.113 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.829e-05/0.1293, allocations: 47.83 kB / 354 MB, free: 1.066 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001027/0.1294, allocations: 79.59 kB / 354.1 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002499/0.1297, allocations: 211.6 kB / 354.3 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.1297, allocations: 7.938 kB / 354.3 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1297, allocations: 0 / 354.3 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.1297, allocations: 0 / 354.3 MB, free: 0.7734 MB / 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.0009114/0.1306, allocations: 0.5251 MB / 354.9 MB, free: 196 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.1307, allocations: 8.031 kB / 354.9 MB, free: 188 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.142e-05/0.1308, allocations: 24.66 kB / 354.9 MB, free: 164 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003397/0.1311, allocations: 231.3 kB / 355.1 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.245e-05/0.1312, allocations: 46.58 kB / 355.2 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.323e-05/0.1312, allocations: 23.94 kB / 355.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00077/0.132, allocations: 323 kB / 355.5 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.132, allocations: 4 kB / 355.5 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.634e-05/0.1321, allocations: 8 kB / 355.5 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.1321, allocations: 4 kB / 355.5 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004297/0.1325, allocations: 127.9 kB / 355.6 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007608/0.1333, allocations: 465.3 kB / 356.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005081/0.1338, allocations: 201.1 kB / 356.3 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003378/0.1342, allocations: 117.7 kB / 356.4 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.012e-05/0.1342, allocations: 7.984 kB / 356.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003629/0.1346, allocations: 119.3 kB / 356.5 MB, free: 14.37 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.793e-06/0.1346, allocations: 0 / 356.5 MB, free: 14.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008278/0.1354, allocations: 282.1 kB / 356.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001404/0.1356, allocations: 85.11 kB / 356.9 MB, free: 13.99 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.1357, allocations: 154.3 kB / 357 MB, free: 13.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.061e-05/0.1358, allocations: 33.7 kB / 357.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.608e-05/0.1358, allocations: 116.4 kB / 357.2 MB, free: 13.67 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.521e-05/0.1359, allocations: 31.55 kB / 357.2 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.809e-05/0.136, allocations: 57.62 kB / 357.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.1361, allocations: 326.8 kB / 357.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002055/0.1363, allocations: 68.12 kB / 357.7 MB, free: 13.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002582/0.1366, allocations: 143.7 kB / 357.8 MB, free: 13 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004649/0.1371, allocations: 227.1 kB / 358 MB, free: 12.74 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.1371, allocations: 7.938 kB / 358 MB, free: 12.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005794/0.1377, allocations: 270.8 kB / 358.3 MB, free: 12.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.247e-05/0.1377, allocations: 38.05 kB / 358.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.1378, allocations: 8 kB / 358.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.798e-05/0.1378, allocations: 4 kB / 358.3 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002139/0.138, allocations: 43.91 kB / 358.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/0.138, allocations: 7.938 kB / 358.4 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001764/0.1382, allocations: 27.83 kB / 358.4 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.681e-05/0.1382, allocations: 11.98 kB / 358.4 MB, free: 12.31 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.0001556/0.1384, allocations: 137.8 kB / 358.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001882/0.1386, allocations: 117.5 kB / 358.7 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.32e-05/0.1387, allocations: 20.72 kB / 358.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.1387, allocations: 0 / 358.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.1387, allocations: 3.938 kB / 358.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.754e-06/0.1387, allocations: 7.984 kB / 358.7 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007439/0.1395, allocations: 486.2 kB / 359.2 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/0.1395, allocations: 8 kB / 359.2 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001859/0.1397, allocations: 39.89 kB / 359.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.985e-06/0.1397, allocations: 7.938 kB / 359.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.74e-05/0.1397, allocations: 7.938 kB / 359.3 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.1397, allocations: 4 kB / 359.3 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.1397, allocations: 4 kB / 359.3 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000568/0.1403, allocations: 320.1 kB / 359.6 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.771e-05/0.1404, allocations: 92.86 kB / 359.7 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.485e-05/0.1404, allocations: 7.938 kB / 359.7 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001851/0.1406, allocations: 23.97 kB / 359.7 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.817e-05/0.1407, allocations: 11.98 kB / 359.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.745e-05/0.1407, allocations: 8 kB / 359.7 MB, free: 10.92 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.607e-05/0.1408, allocations: 112.8 kB / 359.8 MB, free: 10.81 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1408, allocations: 0 / 359.8 MB, free: 10.81 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003001/0.1411, allocations: 43.84 kB / 359.9 MB, free: 10.77 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 0.0001288/0.1413, allocations: 115.7 kB / 360 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005999/0.1419, allocations: 253.3 kB / 360.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.1419, allocations: 128 / 360.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002012/0.1421, allocations: 71.83 kB / 360.3 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004455/0.1425, allocations: 59.95 kB / 360.4 MB, free: 10.26 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007306/0.1433, allocations: 355 kB / 360.7 MB, free: 9.875 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003124/0.1436, allocations: 0.7322 MB / 361.4 MB, free: 9.113 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.202e-05/0.1437, allocations: 23.44 kB / 361.5 MB, free: 9.09 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1437, allocations: 0 / 361.5 MB, free: 9.09 MB / 302.1 MB Notification: Performance of Templates: time 0.004019/0.1477, allocations: 2.162 MB / 363.6 MB, free: 6.941 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