Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.001378/0.001378, allocations: 124 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.001522/0.001522, allocations: 190.9 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.662/1.662, allocations: 225.6 MB / 249.1 MB, free: 3.617 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.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001599/0.001599, allocations: 51.92 kB / 365.6 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.134, allocations: 52.15 MB / 417.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.004342/0.1383, allocations: 2.149 MB / 419.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001509/0.1399, allocations: 0.6548 MB / 420.6 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001901/0.14, allocations: 7.938 kB / 420.6 MB, free: 9.812 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003384/0.1404, allocations: 47.69 kB / 420.6 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001884/0.1406, allocations: 55.56 kB / 420.7 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000465/0.141, allocations: 127.6 kB / 420.8 MB, free: 9.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005163/0.1416, allocations: 343.2 kB / 421.1 MB, free: 9.254 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001994/0.1418, allocations: 44.39 kB / 421.2 MB, free: 9.211 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002872/0.142, allocations: 143.6 kB / 421.3 MB, free: 9.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002891/0.1423, allocations: 167.3 kB / 421.5 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.624e-05/0.1424, allocations: 32 kB / 421.5 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.103e-05/0.1424, allocations: 28 kB / 421.5 MB, free: 8.848 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001301/0.1426, allocations: 87.72 kB / 421.6 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001578/0.1427, allocations: 119.4 kB / 421.7 MB, free: 8.645 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004741/0.1432, allocations: 286.9 kB / 422 MB, free: 8.363 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1432, allocations: 0 / 422 MB, free: 8.363 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1432, allocations: 0 / 422 MB, free: 8.363 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.247e-05/0.1432, allocations: 0 / 422 MB, free: 8.363 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001397/0.1446, allocations: 0.5803 MB / 422.6 MB, free: 7.734 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.1447, allocations: 12.03 kB / 422.6 MB, free: 7.723 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.549e-05/0.1448, allocations: 58.73 kB / 422.7 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.946e-05/0.1448, allocations: 44.73 kB / 422.7 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004882/0.1453, allocations: 248.5 kB / 423 MB, free: 7.332 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002447/0.1456, allocations: 137.9 kB / 423.1 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.079e-05/0.1456, allocations: 24 kB / 423.1 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009915/0.1466, allocations: 371.4 kB / 423.5 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.241e-05/0.1466, allocations: 4 kB / 423.5 MB, free: 6.777 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.823e-05/0.1467, allocations: 8 kB / 423.5 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.429e-05/0.1467, allocations: 11.98 kB / 423.5 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001482/0.1482, allocations: 489.9 kB / 424 MB, free: 6.281 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002131/0.1503, allocations: 1.004 MB / 425 MB, free: 5.207 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00134/0.1517, allocations: 319.8 kB / 425.3 MB, free: 4.887 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005535/0.1522, allocations: 157.2 kB / 425.4 MB, free: 4.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.352e-05/0.1523, allocations: 8.172 kB / 425.5 MB, free: 4.723 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.403e-05/0.1523, allocations: 38.8 kB / 425.5 MB, free: 4.676 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 3.336e-06/0.1523, allocations: 0 / 425.5 MB, free: 4.676 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.02943/0.1817, allocations: 5.807 MB / 431.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.49e-05/0.1818, allocations: 59.84 kB / 431.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000335/0.1821, allocations: 210.5 kB / 431.6 MB, free: 14.49 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.355e-05/0.1822, allocations: 33.7 kB / 431.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001517/0.1823, allocations: 153 kB / 431.7 MB, free: 14.3 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002143/0.1826, allocations: 186.4 kB / 431.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002452/0.1828, allocations: 90.25 kB / 432 MB, free: 14.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001949/0.183, allocations: 334.8 kB / 432.3 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001406/0.1844, allocations: 468.8 kB / 432.8 MB, free: 13.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001505/0.1859, allocations: 0.5177 MB / 433.3 MB, free: 12.69 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002587/0.1885, allocations: 0.8032 MB / 434.1 MB, free: 11.88 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.1885, allocations: 3.938 kB / 434.1 MB, free: 11.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003051/0.1915, allocations: 0.9867 MB / 435.1 MB, free: 10.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.563e-05/0.1916, allocations: 11.92 kB / 435.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.1916, allocations: 4 kB / 435.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.204e-05/0.1916, allocations: 4.125 kB / 435.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001023/0.1926, allocations: 167.7 kB / 435.3 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.751e-05/0.1926, allocations: 4 kB / 435.3 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007306/0.1934, allocations: 87.88 kB / 435.4 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.045e-05/0.1934, allocations: 16 kB / 435.4 MB, free: 10.59 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0002761/0.1937, allocations: 158.4 kB / 435.6 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/0.1938, allocations: 31.75 kB / 435.6 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001563/0.194, allocations: 51.3 kB / 435.6 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.736e-06/0.194, allocations: 8 kB / 435.6 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.194, allocations: 0 / 435.6 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.194, allocations: 7.984 kB / 435.7 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004676/0.1987, allocations: 1.875 MB / 437.5 MB, free: 8.281 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.466e-05/0.1987, allocations: 12.06 kB / 437.5 MB, free: 8.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007118/0.1994, allocations: 147.8 kB / 437.7 MB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-05/0.1994, allocations: 11.94 kB / 437.7 MB, free: 8.113 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.826e-05/0.1995, allocations: 20 kB / 437.7 MB, free: 8.094 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-05/0.1995, allocations: 23.81 kB / 437.7 MB, free: 8.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.314e-05/0.1995, allocations: 11.94 kB / 437.8 MB, free: 8.059 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003219/0.2027, allocations: 1.227 MB / 439 MB, free: 6.707 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002588/0.203, allocations: 148.8 kB / 439.1 MB, free: 6.543 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.878e-05/0.203, allocations: 20 kB / 439.1 MB, free: 6.523 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005651/0.2036, allocations: 75.91 kB / 439.2 MB, free: 6.449 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002245/0.2038, allocations: 87.67 kB / 439.3 MB, free: 6.363 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.22e-05/0.2039, allocations: 20 kB / 439.3 MB, free: 6.344 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002036/0.2041, allocations: 144.3 kB / 439.5 MB, free: 6.203 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2041, allocations: 0 / 439.5 MB, free: 6.203 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005442/0.2046, allocations: 100 kB / 439.6 MB, free: 6.105 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.003582/0.2082, allocations: 1.781 MB / 441.3 MB, free: 4.191 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002609/0.2108, allocations: 0.7867 MB / 442.1 MB, free: 3.398 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/0.2108, allocations: 0 / 442.1 MB, free: 3.398 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001071/0.2119, allocations: 321.3 kB / 442.4 MB, free: 3.086 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007232/0.2126, allocations: 58.59 kB / 442.5 MB, free: 3.031 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2502/0.4628, allocations: 5.237 MB / 447.7 MB, free: 30.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002768/0.4631, allocations: 0.7784 MB / 448.5 MB, free: 29.35 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004298/0.4635, allocations: 80.7 kB / 448.6 MB, free: 29.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002933/0.4638, allocations: 94.72 kB / 448.7 MB, free: 29.34 MB / 366.1 MB Notification: Performance of SimCode: time 1.492e-06/0.4638, allocations: 0 / 448.7 MB, free: 29.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04021/0.504, allocations: 8.406 MB / 457.1 MB, free: 28.6 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.06/9.564, allocations: 11.14 kB / 457.1 MB, free: 28.59 MB / 366.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000798722 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.Continuous_res.csv. Warning: Get data of variable load.phi from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.498722188174725]