Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001855/0.001855, allocations: 120.1 kB / 17.78 MB, free: 5.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002523/0.002523, allocations: 198.8 kB / 20.73 MB, free: 2.289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.596/1.596, allocations: 225.6 MB / 249.1 MB, free: 3.625 MB / 190.1 MB " [Timeout remaining time 178] 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.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001547/0.001547, allocations: 47.92 kB / 365.6 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1159, allocations: 52.14 MB / 417.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004075/0.12, allocations: 2.346 MB / 420.1 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001804/0.1218, allocations: 0.7755 MB / 420.9 MB, free: 9.594 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001873/0.122, allocations: 7.938 kB / 420.9 MB, free: 9.586 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003586/0.1224, allocations: 51.56 kB / 420.9 MB, free: 9.535 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002513/0.1226, allocations: 55.56 kB / 421 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005303/0.1231, allocations: 163.7 kB / 421.2 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004946/0.1236, allocations: 379.5 kB / 421.5 MB, free: 8.949 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002158/0.1238, allocations: 67.41 kB / 421.6 MB, free: 8.879 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002605/0.1241, allocations: 167.4 kB / 421.8 MB, free: 8.715 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002897/0.1244, allocations: 175.3 kB / 421.9 MB, free: 8.543 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.252e-05/0.1245, allocations: 32 kB / 422 MB, free: 8.512 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.233e-05/0.1245, allocations: 32 kB / 422 MB, free: 8.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001349/0.1246, allocations: 99.7 kB / 422.1 MB, free: 8.383 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001531/0.1248, allocations: 139.2 kB / 422.2 MB, free: 8.246 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000513/0.1253, allocations: 330.6 kB / 422.5 MB, free: 7.922 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.484e-05/0.1253, allocations: 4 kB / 422.5 MB, free: 7.918 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.1253, allocations: 0 / 422.5 MB, free: 7.918 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.262e-05/0.1253, allocations: 0 / 422.5 MB, free: 7.918 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001733/0.1271, allocations: 0.6236 MB / 423.2 MB, free: 7.246 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/0.1271, allocations: 8.031 kB / 423.2 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.599e-05/0.1272, allocations: 70.72 kB / 423.2 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.771e-05/0.1273, allocations: 36.75 kB / 423.3 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005357/0.1278, allocations: 272.4 kB / 423.5 MB, free: 6.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002433/0.1281, allocations: 138.2 kB / 423.7 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.319e-05/0.1282, allocations: 32.36 kB / 423.7 MB, free: 6.637 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001348/0.1295, allocations: 0.5423 MB / 424.3 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.244e-05/0.1295, allocations: 0 / 424.3 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.591e-05/0.1296, allocations: 12 kB / 424.3 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.216e-05/0.1296, allocations: 8 kB / 424.3 MB, free: 6.051 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001483/0.1311, allocations: 0.5229 MB / 424.8 MB, free: 5.527 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001845/0.1329, allocations: 1.01 MB / 425.8 MB, free: 4.438 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001751/0.1347, allocations: 490.4 kB / 426.3 MB, free: 3.922 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006562/0.1353, allocations: 239.3 kB / 426.5 MB, free: 3.676 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.184e-05/0.1354, allocations: 8 kB / 426.5 MB, free: 3.668 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.128e-05/0.1354, allocations: 46.55 kB / 426.6 MB, free: 3.613 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.954e-06/0.1354, allocations: 0 / 426.6 MB, free: 3.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03947/0.1749, allocations: 5.709 MB / 432.3 MB, free: 13.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001556/0.175, allocations: 149 kB / 432.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002584/0.1753, allocations: 199.2 kB / 432.6 MB, free: 13.51 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.09e-05/0.1754, allocations: 33.7 kB / 432.7 MB, free: 13.47 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001264/0.1755, allocations: 153.6 kB / 432.8 MB, free: 13.31 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002659/0.1758, allocations: 202.3 kB / 433 MB, free: 13.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003382/0.1761, allocations: 106.6 kB / 433.1 MB, free: 13 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002008/0.1763, allocations: 342.8 kB / 433.4 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001733/0.1781, allocations: 0.6227 MB / 434.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001841/0.1799, allocations: 0.7886 MB / 434.9 MB, free: 11.17 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003305/0.1832, allocations: 1.255 MB / 436.1 MB, free: 9.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.466e-05/0.1832, allocations: 3.938 kB / 436.1 MB, free: 9.836 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003904/0.1871, allocations: 1.386 MB / 437.5 MB, free: 8.441 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.918e-05/0.1872, allocations: 11.98 kB / 437.5 MB, free: 8.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.1872, allocations: 4 kB / 437.5 MB, free: 8.426 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.603e-05/0.1872, allocations: 11.94 kB / 437.5 MB, free: 8.414 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001383/0.1886, allocations: 219.7 kB / 437.7 MB, free: 8.199 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.857e-05/0.1886, allocations: 8 kB / 437.7 MB, free: 8.191 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009985/0.1896, allocations: 99.77 kB / 437.8 MB, free: 8.094 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.739e-05/0.1897, allocations: 24 kB / 437.9 MB, free: 8.07 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * 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.0003901/0.1901, allocations: 194.2 kB / 438.1 MB, free: 7.871 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003587/0.1904, allocations: 157.7 kB / 438.2 MB, free: 7.711 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002084/0.1906, allocations: 63.41 kB / 438.3 MB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.1906, allocations: 11.94 kB / 438.3 MB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.1907, allocations: 0 / 438.3 MB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.1907, allocations: 3.984 kB / 438.3 MB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00522/0.1959, allocations: 2.16 MB / 440.5 MB, free: 5.289 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.481e-05/0.1959, allocations: 12 kB / 440.5 MB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008142/0.1967, allocations: 183.8 kB / 440.6 MB, free: 5.098 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.688e-05/0.1967, allocations: 15.98 kB / 440.7 MB, free: 5.082 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.385e-05/0.1968, allocations: 24 kB / 440.7 MB, free: 5.059 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.936e-05/0.1968, allocations: 19.94 kB / 440.7 MB, free: 5.039 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-05/0.1968, allocations: 15.94 kB / 440.7 MB, free: 5.023 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003729/0.2005, allocations: 1.564 MB / 442.3 MB, free: 3.305 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002448/0.2008, allocations: 168.8 kB / 442.4 MB, free: 3.125 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.648e-05/0.2009, allocations: 31.98 kB / 442.5 MB, free: 3.094 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006168/0.2015, allocations: 75.98 kB / 442.6 MB, free: 3.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002244/0.2017, allocations: 95.66 kB / 442.6 MB, free: 2.926 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.52e-05/0.2018, allocations: 31.94 kB / 442.7 MB, free: 2.895 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000166/0.2019, allocations: 140.3 kB / 442.8 MB, free: 2.758 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2019, allocations: 0 / 442.8 MB, free: 2.758 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007136/0.2026, allocations: 124 kB / 442.9 MB, free: 2.637 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.003935/0.2066, allocations: 2.133 MB / 445.1 MB, free: 352 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.2286/0.4352, allocations: 1.028 MB / 446.1 MB, free: 31.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.604e-05/0.4352, allocations: 2.531 kB / 446.1 MB, free: 31.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001222/0.4364, allocations: 327.7 kB / 446.4 MB, free: 31.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001152/0.4376, allocations: 137.1 kB / 446.6 MB, free: 31.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01455/0.4521, allocations: 6.774 MB / 453.3 MB, free: 28.4 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004304/0.4525, allocations: 0.809 MB / 454.1 MB, free: 27.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005617/0.4531, allocations: 94.5 kB / 454.2 MB, free: 27.67 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004569/0.4536, allocations: 118.8 kB / 454.3 MB, free: 27.6 MB / 366.1 MB Notification: Performance of SimCode: time 1.603e-06/0.4536, allocations: 0.5 kB / 454.3 MB, free: 27.6 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04905/0.5026, allocations: 11.29 MB / 465.6 MB, free: 24.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.033/9.536, allocations: 9.141 kB / 465.6 MB, free: 24.71 MB / 366.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000499563 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable load.phi in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv. Warning: Get data of variable load.phi from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv failed! Error: Could not read variable PI.x in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.w,speed.flange.phi [Calling sys.exit(0), Time elapsed: 12.464952952228487]