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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001666/0.001666, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00144/0.00144, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 227.4 MB / 246.8 MB, free: 10.65 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 60.25 kB / 307.1 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1059, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.004408/0.1104, allocations: 1.993 MB / 359.6 MB, free: 12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001914/0.1123, allocations: 0.6973 MB / 360.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002515/0.1126, allocations: 3.938 kB / 360.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.55e-05/0.1128, allocations: 15.8 kB / 360.3 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001968/0.113, allocations: 27.72 kB / 360.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007157/0.1137, allocations: 123.7 kB / 360.4 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003556/0.1141, allocations: 204 kB / 360.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002816/0.1144, allocations: 100.3 kB / 360.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002817/0.1146, allocations: 91.67 kB / 360.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001853/0.1148, allocations: 91.55 kB / 360.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.965e-05/0.1149, allocations: 20 kB / 360.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.841e-05/0.115, allocations: 28 kB / 361 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.735e-05/0.1151, allocations: 39.89 kB / 361 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001087/0.1152, allocations: 87.47 kB / 361.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003459/0.1155, allocations: 219.6 kB / 361.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.1156, allocations: 0 / 361.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.1156, allocations: 0 / 361.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.161e-05/0.1156, allocations: 0 / 361.3 MB, free: 10.27 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.00107/0.1167, allocations: 0.5336 MB / 361.8 MB, free: 9.672 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.1167, allocations: 11.97 kB / 361.8 MB, free: 9.66 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.892e-05/0.1168, allocations: 54.73 kB / 361.9 MB, free: 9.598 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001945/0.117, allocations: 28.73 kB / 361.9 MB, free: 9.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003174/0.1173, allocations: 227.6 kB / 362.2 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.325e-05/0.1174, allocations: 46.33 kB / 362.2 MB, free: 9.262 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.452e-05/0.1175, allocations: 23.98 kB / 362.2 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007622/0.1182, allocations: 333.9 kB / 362.5 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.1183, allocations: 0 / 362.5 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.755e-05/0.1183, allocations: 12 kB / 362.6 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.1183, allocations: 4 kB / 362.6 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004854/0.1188, allocations: 127.9 kB / 362.7 MB, free: 8.758 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008154/0.1196, allocations: 469.1 kB / 363.1 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005404/0.1202, allocations: 193.2 kB / 363.3 MB, free: 8.039 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000269/0.1205, allocations: 105.7 kB / 363.4 MB, free: 7.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.281e-05/0.1205, allocations: 12.19 kB / 363.4 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004022/0.1209, allocations: 125.6 kB / 363.6 MB, free: 7.785 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.843e-06/0.1209, allocations: 0 / 363.6 MB, free: 7.785 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008511/0.1218, allocations: 289.2 kB / 363.9 MB, free: 7.496 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.326e-05/0.1219, allocations: 85.11 kB / 363.9 MB, free: 7.395 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001362/0.122, allocations: 151.9 kB / 364.1 MB, free: 7.234 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.78e-05/0.1221, allocations: 25.7 kB / 364.1 MB, free: 7.203 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.797e-05/0.1222, allocations: 116.5 kB / 364.2 MB, free: 7.086 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.867e-05/0.1222, allocations: 31.55 kB / 364.3 MB, free: 7.055 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.877e-05/0.1223, allocations: 49.7 kB / 364.3 MB, free: 7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.1224, allocations: 334.8 kB / 364.6 MB, free: 6.664 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002128/0.1226, allocations: 64.19 kB / 364.7 MB, free: 6.602 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002592/0.1229, allocations: 151.7 kB / 364.8 MB, free: 6.418 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004613/0.1234, allocations: 223.9 kB / 365.1 MB, free: 6.156 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.1234, allocations: 4 kB / 365.1 MB, free: 6.152 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006103/0.124, allocations: 274.8 kB / 365.3 MB, free: 5.871 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.568e-05/0.1241, allocations: 29.7 kB / 365.4 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.1241, allocations: 4.344 kB / 365.4 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.1241, allocations: 8 kB / 365.4 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002249/0.1244, allocations: 47.91 kB / 365.4 MB, free: 5.777 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.354e-05/0.1244, allocations: 7.938 kB / 365.4 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001841/0.1246, allocations: 31.77 kB / 365.5 MB, free: 5.738 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.415e-05/0.1246, allocations: 15.92 kB / 365.5 MB, free: 5.723 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.0001514/0.1248, allocations: 149.8 kB / 365.6 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002066/0.125, allocations: 105.4 kB / 365.7 MB, free: 5.457 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.849e-05/0.1251, allocations: 24.72 kB / 365.7 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-06/0.1251, allocations: 7.984 kB / 365.8 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.1251, allocations: 0 / 365.8 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.1251, allocations: 3.938 kB / 365.8 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000782/0.1259, allocations: 494.2 kB / 366.2 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.1259, allocations: 0 / 366.2 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002025/0.1261, allocations: 43.97 kB / 366.3 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.1261, allocations: 0 / 366.3 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.253e-05/0.1261, allocations: 7.938 kB / 366.3 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.1262, allocations: 0 / 366.3 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.1262, allocations: 7.922 kB / 366.3 MB, free: 4.824 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005958/0.1268, allocations: 325 kB / 366.6 MB, free: 4.488 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.026e-05/0.1268, allocations: 96.84 kB / 366.7 MB, free: 4.375 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.766e-05/0.1269, allocations: 11.94 kB / 366.7 MB, free: 4.363 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001997/0.1271, allocations: 15.98 kB / 366.7 MB, free: 4.348 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.64e-05/0.1272, allocations: 19.97 kB / 366.8 MB, free: 4.328 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.682e-05/0.1272, allocations: 4 kB / 366.8 MB, free: 4.324 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.14e-05/0.1273, allocations: 118.5 kB / 366.9 MB, free: 4.211 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1273, allocations: 0 / 366.9 MB, free: 4.211 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003131/0.1276, allocations: 36 kB / 366.9 MB, free: 4.176 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.001185/0.1288, allocations: 0.9618 MB / 367.9 MB, free: 3.184 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005951/0.1294, allocations: 255 kB / 368.1 MB, free: 2.922 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1294, allocations: 3.938 kB / 368.1 MB, free: 2.918 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001998/0.1296, allocations: 68.52 kB / 368.2 MB, free: 2.852 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004485/0.1301, allocations: 75.05 kB / 368.3 MB, free: 2.781 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002888/0.133, allocations: 2.145 MB / 370.4 MB, free: 484 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1686/0.3016, allocations: 0.7249 MB / 371.1 MB, free: 19.75 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001262/0.3018, allocations: 15.2 kB / 371.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001235/0.3019, allocations: 51.83 kB / 371.2 MB, free: 19.74 MB / 302.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3019, allocations: 1.781 kB / 371.2 MB, free: 19.74 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02373/0.3257, allocations: 3.704 MB / 374.9 MB, free: 19.36 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.307/8.633, allocations: 8.812 kB / 374.9 MB, free: 19.35 MB / 302.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.csv","/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