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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 109.6 kB / 16.92 MB, free: 6.145 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.001175/0.001175, allocations: 191.5 kB / 17.85 MB, free: 5.309 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.378/1.378, allocations: 222.9 MB / 241.5 MB, free: 15.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001207, allocations: 43.52 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1065, allocations: 49.44 MB / 350.2 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.004173/0.1107, allocations: 1.963 MB / 352.1 MB, free: 2.344 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001712/0.1125, allocations: 0.6388 MB / 352.8 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001689/0.1127, allocations: 4 kB / 352.8 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.507e-05/0.1128, allocations: 23.73 kB / 352.8 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001222/0.1129, allocations: 15.75 kB / 352.8 MB, free: 1.656 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004905/0.1134, allocations: 111.7 kB / 352.9 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000284/0.1137, allocations: 212 kB / 353.1 MB, free: 1.34 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002552/0.114, allocations: 88.33 kB / 353.2 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001837/0.1142, allocations: 87.69 kB / 353.3 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001358/0.1143, allocations: 91.59 kB / 353.4 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.479e-05/0.1144, allocations: 20 kB / 353.4 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.646e-05/0.1144, allocations: 20 kB / 353.4 MB, free: 1.039 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.218e-05/0.1145, allocations: 47.78 kB / 353.5 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.1146, allocations: 87.52 kB / 353.6 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002775/0.1149, allocations: 215.6 kB / 353.8 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.1149, allocations: 0 / 353.8 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1149, allocations: 0 / 353.8 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.1149, allocations: 0 / 353.8 MB, free: 0.6953 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.001053/0.116, allocations: 0.5168 MB / 354.3 MB, free: 124 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.1161, allocations: 12.02 kB / 354.3 MB, free: 112 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.504e-05/0.1161, allocations: 54.73 kB / 354.3 MB, free: 48 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.8e-05/0.1162, allocations: 20.66 kB / 354.4 MB, free: 28 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003416/0.1166, allocations: 240.4 kB / 354.6 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.504e-05/0.1166, allocations: 42.34 kB / 354.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.659e-05/0.1167, allocations: 16 kB / 354.7 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007387/0.1174, allocations: 333.8 kB / 355 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.1174, allocations: 0 / 355 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.358e-05/0.1175, allocations: 4 kB / 355 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.1175, allocations: 7.984 kB / 355 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004302/0.1179, allocations: 131.9 kB / 355.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007403/0.1187, allocations: 465.3 kB / 355.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005172/0.1192, allocations: 201.1 kB / 355.8 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002523/0.1195, allocations: 101.7 kB / 355.9 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.583e-05/0.1195, allocations: 12.12 kB / 355.9 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003801/0.1199, allocations: 119.2 kB / 356 MB, free: 14.24 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 2.034e-06/0.1199, allocations: 0 / 356 MB, free: 14.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008939/0.1208, allocations: 274 kB / 356.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.176e-05/0.1209, allocations: 93.33 kB / 356.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001455/0.1211, allocations: 161 kB / 356.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.982e-05/0.1211, allocations: 33.64 kB / 356.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.132e-05/0.1212, allocations: 112.5 kB / 356.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.247e-05/0.1213, allocations: 39.61 kB / 356.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.497e-05/0.1214, allocations: 53.69 kB / 356.8 MB, free: 13.44 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.1215, allocations: 322.8 kB / 357.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002014/0.1217, allocations: 64.19 kB / 357.1 MB, free: 13.05 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002594/0.122, allocations: 151.8 kB / 357.3 MB, free: 12.87 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004514/0.1225, allocations: 223.9 kB / 357.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.1225, allocations: 0 / 357.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006334/0.1231, allocations: 289.6 kB / 357.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.331e-05/0.1232, allocations: 33.7 kB / 357.8 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.1232, allocations: 0 / 357.8 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.153e-05/0.1232, allocations: 4 kB / 357.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002275/0.1235, allocations: 44.25 kB / 357.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.845e-05/0.1235, allocations: 15.88 kB / 357.9 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002086/0.1237, allocations: 31.81 kB / 357.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.826e-05/0.1238, allocations: 16 kB / 357.9 MB, free: 12.17 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.0002716/0.124, allocations: 133.8 kB / 358.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002373/0.1243, allocations: 105.4 kB / 358.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.51e-05/0.1244, allocations: 28.64 kB / 358.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.044e-06/0.1244, allocations: 4 kB / 358.2 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.1244, allocations: 3.938 kB / 358.2 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.1244, allocations: 7.984 kB / 358.2 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009153/0.1254, allocations: 498.1 kB / 358.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.1254, allocations: 0 / 358.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001871/0.1256, allocations: 35.97 kB / 358.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.101e-06/0.1256, allocations: 3.938 kB / 358.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.067e-05/0.1256, allocations: 12 kB / 358.7 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.552e-05/0.1256, allocations: 7.938 kB / 358.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.1256, allocations: 3.984 kB / 358.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006193/0.1263, allocations: 316.1 kB / 359.1 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.539e-05/0.1263, allocations: 96.8 kB / 359.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.014e-05/0.1264, allocations: 15.98 kB / 359.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001759/0.1266, allocations: 11.98 kB / 359.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.713e-05/0.1267, allocations: 15.98 kB / 359.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.914e-05/0.1267, allocations: 11.98 kB / 359.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.89e-05/0.1268, allocations: 109 kB / 359.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1268, allocations: 0 / 359.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003274/0.1271, allocations: 39.91 kB / 359.4 MB, free: 10.62 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.001343/0.1285, allocations: 0.9649 MB / 360.3 MB, free: 9.633 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006442/0.1292, allocations: 252.9 kB / 360.6 MB, free: 9.379 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.1292, allocations: 0 / 360.6 MB, free: 9.379 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001931/0.1294, allocations: 67.89 kB / 360.6 MB, free: 9.312 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004853/0.1299, allocations: 67.8 kB / 360.7 MB, free: 9.246 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003265/0.1331, allocations: 2.139 MB / 362.8 MB, free: 6.949 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005282/0.1337, allocations: 0.7322 MB / 363.6 MB, free: 6.191 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001032/0.1338, allocations: 17.42 kB / 363.6 MB, free: 6.172 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000136/0.134, allocations: 55.41 kB / 363.6 MB, free: 6.117 MB / 302.1 MB Notification: Performance of SimCode: time 1.352e-06/0.134, allocations: 0 / 363.6 MB, free: 6.117 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03003/0.164, allocations: 3.652 MB / 367.3 MB, free: 2.598 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.223/8.387, allocations: 3.984 kB / 367.3 MB, free: 2.594 MB / 302.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu > 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.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_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches