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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007836/0.0007836, allocations: 93.33 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00087/0.0008701, allocations: 201.5 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 227.7 MB / 247.5 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002396/0.0002398, allocations: 8 kB / 308.4 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1216, allocations: 51.52 MB / 359.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002601/0.1242, allocations: 1.688 MB / 361.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001454/0.1257, allocations: 0.6857 MB / 362.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001752/0.1259, allocations: 4 kB / 362.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.787e-05/0.126, allocations: 11.86 kB / 362.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001758/0.1261, allocations: 7.875 kB / 362.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005271/0.1267, allocations: 107.8 kB / 362.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002515/0.1269, allocations: 188 kB / 362.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002534/0.1272, allocations: 99.48 kB / 362.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002349/0.1275, allocations: 67.69 kB / 362.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001462/0.1276, allocations: 67.62 kB / 362.8 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.018e-05/0.1276, allocations: 4 kB / 362.8 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.193e-05/0.1277, allocations: 11.94 kB / 362.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.231e-05/0.1278, allocations: 27.91 kB / 362.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001013/0.1279, allocations: 93.23 kB / 363 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00022/0.1281, allocations: 155.9 kB / 363.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.1281, allocations: 0 / 363.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1281, allocations: 0 / 363.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.1281, allocations: 0 / 363.1 MB, free: 10.08 MB / 302.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.0009233/0.1291, allocations: 0.5065 MB / 363.6 MB, free: 9.508 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.1291, allocations: 8.031 kB / 363.6 MB, free: 9.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002119/0.1293, allocations: 40.73 kB / 363.7 MB, free: 9.461 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002998/0.1296, allocations: 228.5 kB / 363.9 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.237e-05/0.1297, allocations: 42.59 kB / 363.9 MB, free: 9.152 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.958e-05/0.1298, allocations: 23.92 kB / 364 MB, free: 9.129 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007756/0.1305, allocations: 342.8 kB / 364.3 MB, free: 8.777 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.1306, allocations: 0 / 364.3 MB, free: 8.777 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.87e-05/0.1306, allocations: 8 kB / 364.3 MB, free: 8.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.1306, allocations: 0 / 364.3 MB, free: 8.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004715/0.1311, allocations: 143.9 kB / 364.4 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007976/0.1319, allocations: 469.2 kB / 364.9 MB, free: 8.117 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005493/0.1325, allocations: 217.1 kB / 365.1 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003076/0.1328, allocations: 109.6 kB / 365.2 MB, free: 7.773 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.374e-05/0.1328, allocations: 12.05 kB / 365.2 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003679/0.1332, allocations: 127.3 kB / 365.3 MB, free: 7.625 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.873e-06/0.1332, allocations: 0 / 365.3 MB, free: 7.625 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009533/0.1342, allocations: 310.1 kB / 365.7 MB, free: 7.316 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.1343, allocations: 89.11 kB / 365.7 MB, free: 7.211 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001946/0.1345, allocations: 159.1 kB / 365.9 MB, free: 7.047 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.766e-05/0.1345, allocations: 33.7 kB / 365.9 MB, free: 7.008 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001224/0.1347, allocations: 108.5 kB / 366 MB, free: 6.898 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.592e-05/0.1347, allocations: 43.48 kB / 366.1 MB, free: 6.855 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.502e-05/0.1348, allocations: 25.7 kB / 366.1 MB, free: 6.824 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001877/0.135, allocations: 330.8 kB / 366.4 MB, free: 6.492 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002514/0.1352, allocations: 76.17 kB / 366.5 MB, free: 6.418 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002653/0.1355, allocations: 151.8 kB / 366.6 MB, free: 6.234 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005007/0.136, allocations: 250.6 kB / 366.9 MB, free: 5.949 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.136, allocations: 3.938 kB / 366.9 MB, free: 5.945 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006263/0.1367, allocations: 290.9 kB / 367.2 MB, free: 5.648 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.545e-05/0.1367, allocations: 37.69 kB / 367.2 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.1367, allocations: 4 kB / 367.2 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.954e-05/0.1368, allocations: 4 kB / 367.2 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002119/0.137, allocations: 48.19 kB / 367.3 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.073e-05/0.137, allocations: 4 kB / 367.3 MB, free: 5.547 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000174/0.1372, allocations: 35.83 kB / 367.3 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.756e-05/0.1372, allocations: 19.92 kB / 367.3 MB, free: 5.492 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.0001503/0.1374, allocations: 141.8 kB / 367.5 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001943/0.1376, allocations: 101.5 kB / 367.6 MB, free: 5.238 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.63e-05/0.1377, allocations: 24.72 kB / 367.6 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.359e-06/0.1377, allocations: 0 / 367.6 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.146e-06/0.1377, allocations: 4 kB / 367.6 MB, free: 5.211 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.1377, allocations: 3.984 kB / 367.6 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008087/0.1385, allocations: 0.5059 MB / 368.1 MB, free: 4.645 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.1385, allocations: 4 kB / 368.1 MB, free: 4.641 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000217/0.1388, allocations: 47.89 kB / 368.2 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.314e-06/0.1388, allocations: 4 kB / 368.2 MB, free: 4.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.038e-05/0.1388, allocations: 4 kB / 368.2 MB, free: 4.586 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.52e-05/0.1388, allocations: 11.94 kB / 368.2 MB, free: 4.574 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1388, allocations: 0 / 368.2 MB, free: 4.574 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006519/0.1395, allocations: 336 kB / 368.5 MB, free: 4.227 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.978e-05/0.1396, allocations: 92.86 kB / 368.6 MB, free: 4.117 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.789e-05/0.1396, allocations: 11.98 kB / 368.6 MB, free: 4.105 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001847/0.1398, allocations: 27.86 kB / 368.6 MB, free: 4.078 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.977e-05/0.1399, allocations: 11.98 kB / 368.6 MB, free: 4.066 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.853e-05/0.1399, allocations: 15.86 kB / 368.7 MB, free: 4.051 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.421e-05/0.14, allocations: 119.2 kB / 368.8 MB, free: 3.934 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.14, allocations: 0 / 368.8 MB, free: 3.934 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003176/0.1404, allocations: 32 kB / 368.8 MB, free: 3.902 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.0001545/0.1405, allocations: 103.2 kB / 368.9 MB, free: 3.789 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006695/0.1412, allocations: 262.3 kB / 369.2 MB, free: 3.523 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.1412, allocations: 3.938 kB / 369.2 MB, free: 3.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000206/0.1414, allocations: 72.64 kB / 369.2 MB, free: 3.449 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004785/0.1419, allocations: 63.94 kB / 369.3 MB, free: 3.387 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007851/0.1427, allocations: 416.4 kB / 369.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003215/0.143, allocations: 0.7325 MB / 370.4 MB, free: 2.191 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.584e-05/0.1431, allocations: 23.42 kB / 370.5 MB, free: 2.168 MB / 302.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1431, allocations: 0 / 370.5 MB, free: 2.168 MB / 302.1 MB Notification: Performance of Templates: time 0.004566/0.1477, allocations: 2.169 MB / 372.6 MB, free: 8 kB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches