Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.0015/0.0015, allocations: 123 kB / 17.79 MB, free: 5.266 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.001563/0.001563, allocations: 189.2 kB / 20.73 MB, free: 2.328 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.791/1.791, allocations: 225.6 MB / 249.1 MB, free: 3.621 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.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001631/0.001631, allocations: 48.02 kB / 365.6 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1385, allocations: 52.14 MB / 417.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004305/0.1428, allocations: 2.37 MB / 420.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001845/0.1447, allocations: 0.7988 MB / 420.9 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002526/0.1449, allocations: 11.88 kB / 420.9 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003735/0.1453, allocations: 51.56 kB / 421 MB, free: 9.395 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002589/0.1456, allocations: 67.56 kB / 421.1 MB, free: 9.328 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000624/0.1462, allocations: 179.6 kB / 421.2 MB, free: 9.152 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005085/0.1467, allocations: 383.5 kB / 421.6 MB, free: 8.777 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002154/0.1469, allocations: 76.48 kB / 421.7 MB, free: 8.699 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002946/0.1472, allocations: 163.5 kB / 421.8 MB, free: 8.539 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002766/0.1475, allocations: 187.2 kB / 422 MB, free: 8.355 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.994e-05/0.1475, allocations: 32 kB / 422.1 MB, free: 8.324 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.593e-05/0.1476, allocations: 36 kB / 422.1 MB, free: 8.289 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001345/0.1477, allocations: 99.7 kB / 422.2 MB, free: 8.191 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001603/0.1479, allocations: 147.2 kB / 422.3 MB, free: 8.047 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005117/0.1484, allocations: 338.6 kB / 422.7 MB, free: 7.715 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.1484, allocations: 0 / 422.7 MB, free: 7.715 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1484, allocations: 0 / 422.7 MB, free: 7.715 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.1484, allocations: 0 / 422.7 MB, free: 7.715 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001521/0.1499, allocations: 0.6236 MB / 423.3 MB, free: 7.043 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.15, allocations: 12.02 kB / 423.3 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.861e-05/0.1501, allocations: 78.67 kB / 423.4 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.412e-05/0.1502, allocations: 44.75 kB / 423.4 MB, free: 6.902 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005504/0.1507, allocations: 284.3 kB / 423.7 MB, free: 6.586 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002376/0.151, allocations: 138.3 kB / 423.8 MB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.975e-05/0.151, allocations: 28.38 kB / 423.9 MB, free: 6.406 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001412/0.1524, allocations: 0.5582 MB / 424.4 MB, free: 5.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.427e-05/0.1525, allocations: 11.95 kB / 424.4 MB, free: 5.809 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.978e-05/0.1525, allocations: 11.94 kB / 424.4 MB, free: 5.797 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.457e-05/0.1525, allocations: 8 kB / 424.4 MB, free: 5.789 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001636/0.1542, allocations: 0.5113 MB / 425 MB, free: 5.277 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001831/0.156, allocations: 0.987 MB / 425.9 MB, free: 4.211 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001882/0.1579, allocations: 496.6 kB / 426.4 MB, free: 3.691 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007076/0.1586, allocations: 235.4 kB / 426.7 MB, free: 3.449 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.343e-05/0.1586, allocations: 4 kB / 426.7 MB, free: 3.445 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/0.1587, allocations: 38.56 kB / 426.7 MB, free: 3.398 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.324e-06/0.1587, allocations: 7.938 kB / 426.7 MB, free: 3.391 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.04259/0.2013, allocations: 5.732 MB / 432.4 MB, free: 13.65 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001927/0.2015, allocations: 148.9 kB / 432.6 MB, free: 13.47 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003332/0.2018, allocations: 199.4 kB / 432.8 MB, free: 13.26 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001181/0.2019, allocations: 33.7 kB / 432.8 MB, free: 13.22 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001558/0.2021, allocations: 149.7 kB / 433 MB, free: 13.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002825/0.2023, allocations: 194.4 kB / 433.2 MB, free: 12.88 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003565/0.2027, allocations: 110.7 kB / 433.3 MB, free: 12.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002105/0.2029, allocations: 346.8 kB / 433.6 MB, free: 12.42 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001826/0.2047, allocations: 0.611 MB / 434.2 MB, free: 11.81 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001981/0.2067, allocations: 0.7925 MB / 435 MB, free: 10.94 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003719/0.2104, allocations: 1.251 MB / 436.3 MB, free: 9.609 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.067e-05/0.2104, allocations: 3.984 kB / 436.3 MB, free: 9.605 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.004151/0.2146, allocations: 1.398 MB / 437.7 MB, free: 8.199 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.546e-05/0.2146, allocations: 8 kB / 437.7 MB, free: 8.191 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.077e-05/0.2147, allocations: 4.234 kB / 437.7 MB, free: 8.188 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.305e-05/0.2147, allocations: 15.98 kB / 437.7 MB, free: 8.172 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001483/0.2162, allocations: 207.6 kB / 437.9 MB, free: 7.969 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.647e-05/0.2162, allocations: 11.94 kB / 437.9 MB, free: 7.957 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00108/0.2173, allocations: 103.8 kB / 438 MB, free: 7.855 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001032/0.2174, allocations: 35.97 kB / 438 MB, free: 7.82 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.0004276/0.2178, allocations: 177.6 kB / 438.2 MB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004209/0.2182, allocations: 165.2 kB / 438.4 MB, free: 7.469 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002588/0.2185, allocations: 59.31 kB / 438.4 MB, free: 7.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.499e-05/0.2185, allocations: 8 kB / 438.4 MB, free: 7.402 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.638e-05/0.2185, allocations: 480 / 438.4 MB, free: 7.402 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.2185, allocations: 7.984 kB / 438.4 MB, free: 7.395 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005921/0.2245, allocations: 2.183 MB / 440.6 MB, free: 5.027 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.24e-05/0.2245, allocations: 12 kB / 440.6 MB, free: 5.016 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008582/0.2254, allocations: 179.7 kB / 440.8 MB, free: 4.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.48e-05/0.2254, allocations: 19.98 kB / 440.8 MB, free: 4.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.556e-05/0.2254, allocations: 24.41 kB / 440.9 MB, free: 4.797 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.85e-05/0.2255, allocations: 19.94 kB / 440.9 MB, free: 4.777 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-05/0.2255, allocations: 16.33 kB / 440.9 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003831/0.2293, allocations: 1.564 MB / 442.5 MB, free: 3.047 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002877/0.2296, allocations: 164.8 kB / 442.6 MB, free: 2.867 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.146e-05/0.2297, allocations: 27.98 kB / 442.6 MB, free: 2.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006297/0.2303, allocations: 75.92 kB / 442.7 MB, free: 2.766 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002393/0.2306, allocations: 95.66 kB / 442.8 MB, free: 2.672 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.711e-05/0.2306, allocations: 32 kB / 442.8 MB, free: 2.641 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001892/0.2308, allocations: 140.1 kB / 443 MB, free: 2.504 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2308, allocations: 0 / 443 MB, free: 2.504 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008199/0.2316, allocations: 131.9 kB / 443.1 MB, free: 2.375 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.004242/0.2359, allocations: 2.133 MB / 445.2 MB, free: 84 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.2617/0.4976, allocations: 1.019 MB / 446.3 MB, free: 31.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.681e-05/0.4976, allocations: 4.312 kB / 446.3 MB, free: 31.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001148/0.4987, allocations: 331.6 kB / 446.6 MB, free: 31.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001055/0.4998, allocations: 130.3 kB / 446.7 MB, free: 31.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01438/0.5142, allocations: 6.778 MB / 453.5 MB, free: 28.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006011/0.5148, allocations: 0.8134 MB / 454.3 MB, free: 27.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006012/0.5154, allocations: 101 kB / 454.4 MB, free: 27.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004331/0.5158, allocations: 114.6 kB / 454.5 MB, free: 27.38 MB / 366.1 MB Notification: Performance of SimCode: time 1.122e-06/0.5158, allocations: 0 / 454.5 MB, free: 27.38 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05089/0.5667, allocations: 11.37 MB / 465.9 MB, free: 24.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.219/9.786, allocations: 12.56 kB / 465.9 MB, free: 24.38 MB / 366.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_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_SubClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.SubClocked_res.csv. Warning: Get data of variable load.phi from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! Error: Could not read variable PI.x in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_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.93984489981085]