Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001656/0.001656, allocations: 109.6 kB / 18.3 MB, free: 4.879 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001796/0.001796, allocations: 208.1 kB / 19.25 MB, free: 3.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.5/1.5, allocations: 227.7 MB / 247.7 MB, free: 10.35 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002105/0.002105, allocations: 72.06 kB / 307.9 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1286, allocations: 50.54 MB / 358.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003936/0.1326, allocations: 1.992 MB / 360.4 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001513/0.1341, allocations: 0.7012 MB / 361.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001406/0.1343, allocations: 4 kB / 361.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.44e-05/0.1344, allocations: 19.73 kB / 361.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001231/0.1345, allocations: 19.73 kB / 361.2 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004849/0.135, allocations: 127.8 kB / 361.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002949/0.1353, allocations: 208 kB / 361.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002278/0.1355, allocations: 92.31 kB / 361.6 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002271/0.1358, allocations: 87.69 kB / 361.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001614/0.1359, allocations: 91.53 kB / 361.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.266e-05/0.136, allocations: 20 kB / 361.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.53e-05/0.1361, allocations: 31.98 kB / 361.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.849e-05/0.1361, allocations: 35.92 kB / 361.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001182/0.1363, allocations: 95.5 kB / 361.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002921/0.1366, allocations: 207.6 kB / 362.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.1366, allocations: 11.94 kB / 362.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1366, allocations: 0 / 362.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.73e-06/0.1366, allocations: 0 / 362.2 MB, free: 10.2 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.001024/0.1376, allocations: 0.5182 MB / 362.7 MB, free: 9.617 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.1377, allocations: 16.03 kB / 362.7 MB, free: 9.602 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002161/0.1379, allocations: 40.58 kB / 362.7 MB, free: 9.562 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003054/0.1382, allocations: 236.5 kB / 363 MB, free: 9.293 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.701e-05/0.1383, allocations: 42.53 kB / 363 MB, free: 9.246 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.508e-05/0.1384, allocations: 27.92 kB / 363 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007755/0.1392, allocations: 319 kB / 363.3 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.1392, allocations: 0 / 363.3 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.663e-05/0.1392, allocations: 8 kB / 363.3 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/0.1392, allocations: 3.984 kB / 363.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004566/0.1397, allocations: 131.8 kB / 363.5 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000747/0.1405, allocations: 465.2 kB / 363.9 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000538/0.141, allocations: 201.1 kB / 364.1 MB, free: 8.027 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002755/0.1413, allocations: 105.7 kB / 364.2 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.555e-05/0.1413, allocations: 0 / 364.2 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004094/0.1417, allocations: 127.4 kB / 364.4 MB, free: 7.781 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.563e-06/0.1418, allocations: 0 / 364.4 MB, free: 7.781 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008866/0.1426, allocations: 281.2 kB / 364.6 MB, free: 7.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.803e-05/0.1427, allocations: 93.03 kB / 364.7 MB, free: 7.391 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001522/0.1429, allocations: 154.5 kB / 364.9 MB, free: 7.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.475e-05/0.143, allocations: 37.69 kB / 364.9 MB, free: 7.188 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.1431, allocations: 116.6 kB / 365 MB, free: 7.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.669e-05/0.1431, allocations: 35.55 kB / 365.1 MB, free: 7.035 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.386e-05/0.1432, allocations: 41.7 kB / 365.1 MB, free: 6.988 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.1434, allocations: 334.8 kB / 365.4 MB, free: 6.652 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002101/0.1436, allocations: 64.19 kB / 365.5 MB, free: 6.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002732/0.1439, allocations: 144.4 kB / 365.6 MB, free: 6.414 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004722/0.1444, allocations: 231.7 kB / 365.9 MB, free: 6.145 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1444, allocations: 4 kB / 365.9 MB, free: 6.141 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000602/0.145, allocations: 279 kB / 366.1 MB, free: 5.855 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.417e-05/0.145, allocations: 33.69 kB / 366.2 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.1451, allocations: 4 kB / 366.2 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/0.1451, allocations: 4 kB / 366.2 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002156/0.1453, allocations: 47.84 kB / 366.2 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.1453, allocations: 4 kB / 366.2 MB, free: 5.758 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001823/0.1455, allocations: 27.83 kB / 366.3 MB, free: 5.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.768e-05/0.1456, allocations: 24.05 kB / 366.3 MB, free: 5.707 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.0001545/0.1457, allocations: 141.8 kB / 366.4 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002047/0.1459, allocations: 105.4 kB / 366.5 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.37e-05/0.146, allocations: 24.66 kB / 366.5 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.485e-06/0.146, allocations: 4 kB / 366.5 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.146, allocations: 4 kB / 366.5 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.1461, allocations: 3.984 kB / 366.6 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007966/0.1469, allocations: 494.2 kB / 367 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.1469, allocations: 0 / 367 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002046/0.1471, allocations: 47.89 kB / 367.1 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.1471, allocations: 0 / 367.1 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.174e-05/0.1471, allocations: 8 kB / 367.1 MB, free: 4.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.1471, allocations: 3.938 kB / 367.1 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.1471, allocations: 0 / 367.1 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006578/0.1478, allocations: 331.8 kB / 367.4 MB, free: 4.473 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.542e-05/0.1479, allocations: 92.86 kB / 367.5 MB, free: 4.363 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.577e-05/0.1479, allocations: 7.984 kB / 367.5 MB, free: 4.355 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001857/0.1481, allocations: 19.92 kB / 367.5 MB, free: 4.336 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.6e-05/0.1482, allocations: 19.98 kB / 367.6 MB, free: 4.316 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.894e-05/0.1482, allocations: 7.984 kB / 367.6 MB, free: 4.309 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000102/0.1483, allocations: 115.2 kB / 367.7 MB, free: 4.195 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1483, allocations: 0 / 367.7 MB, free: 4.195 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003155/0.1487, allocations: 32 kB / 367.7 MB, free: 4.164 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.000156/0.1488, allocations: 111.2 kB / 367.8 MB, free: 4.043 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006543/0.1495, allocations: 255.7 kB / 368.1 MB, free: 3.785 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.1495, allocations: 0 / 368.1 MB, free: 3.785 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001995/0.1497, allocations: 63.89 kB / 368.1 MB, free: 3.723 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004722/0.1502, allocations: 72.42 kB / 368.2 MB, free: 3.652 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007817/0.151, allocations: 363.6 kB / 368.6 MB, free: 3.266 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004131/0.1514, allocations: 0.7244 MB / 369.3 MB, free: 2.512 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.405e-05/0.1515, allocations: 23.42 kB / 369.3 MB, free: 2.488 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1515, allocations: 0 / 369.3 MB, free: 2.488 MB / 302.1 MB Notification: Performance of Templates: time 0.005122/0.1566, allocations: 2.203 MB / 371.5 MB, free: 304 kB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches