Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008692/0.0008692, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001411/0.001411, allocations: 156.9 kB / 23.94 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8756/0.8756, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.854e-06/1.854e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.872e-05/2.057e-05, allocations: 8.953 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003448/0.003468, allocations: 2.086 MB / 326.6 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001353/0.004822, allocations: 0.6665 MB / 327.2 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001499/0.004972, allocations: 4 kB / 327.2 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003147/0.005286, allocations: 47.64 kB / 327.3 MB, free: 13.08 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001978/0.005484, allocations: 51.56 kB / 327.3 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004716/0.005956, allocations: 123.8 kB / 327.5 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004577/0.006413, allocations: 351.1 kB / 327.8 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001675/0.006581, allocations: 48.52 kB / 327.9 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004324/0.007013, allocations: 203.6 kB / 328.1 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002417/0.007255, allocations: 127.7 kB / 328.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.788e-05/0.007313, allocations: 28 kB / 328.2 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.345e-05/0.007356, allocations: 36 kB / 328.2 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001062/0.007463, allocations: 87.7 kB / 328.3 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.884e-05/0.007562, allocations: 91.78 kB / 328.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000405/0.007966, allocations: 311 kB / 328.7 MB, free: 11.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.00797, allocations: 0 / 328.7 MB, free: 11.65 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.007972, allocations: 0 / 328.7 MB, free: 11.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.757e-06/0.007981, allocations: 0 / 328.7 MB, free: 11.65 MB / 298.7 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.001044/0.009025, allocations: 0.509 MB / 329.2 MB, free: 11.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.00907, allocations: 15.98 kB / 329.2 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.145e-05/0.009141, allocations: 58.73 kB / 329.3 MB, free: 11.03 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.481e-05/0.009216, allocations: 36.78 kB / 329.3 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003668/0.009583, allocations: 194 kB / 329.5 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002711/0.009854, allocations: 339.8 kB / 329.9 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.324e-05/0.009907, allocations: 24.38 kB / 329.9 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008115/0.01072, allocations: 374.7 kB / 330.2 MB, free: 9.984 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.01074, allocations: 7.891 kB / 330.3 MB, free: 9.977 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.556e-05/0.01077, allocations: 12 kB / 330.3 MB, free: 9.965 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.884e-06/0.01078, allocations: 4 kB / 330.3 MB, free: 9.961 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001207/0.01199, allocations: 0.4937 MB / 330.8 MB, free: 9.461 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001744/0.01373, allocations: 0.9025 MB / 331.7 MB, free: 8.504 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006419/0.01437, allocations: 309.6 kB / 332 MB, free: 8.195 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003016/0.01468, allocations: 164.7 kB / 332.1 MB, free: 8.031 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.696e-05/0.0147, allocations: 4 kB / 332.1 MB, free: 8.027 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.948e-05/0.01472, allocations: 34.56 kB / 332.2 MB, free: 7.984 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.944e-06/0.01472, allocations: 8 kB / 332.2 MB, free: 7.977 MB / 298.7 MB Notification: Performance of matching and sorting (n=53): time 0.01861/0.03334, allocations: 5.672 MB / 337.8 MB, free: 2.246 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/0.03338, allocations: 63.84 kB / 337.9 MB, free: 2.172 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001876/0.03357, allocations: 210.3 kB / 338.1 MB, free: 1.957 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.708e-05/0.0336, allocations: 33.7 kB / 338.1 MB, free: 1.918 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.106e-05/0.03367, allocations: 153 kB / 338.3 MB, free: 1.762 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001164/0.03379, allocations: 182.4 kB / 338.5 MB, free: 1.582 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001503/0.03394, allocations: 90.34 kB / 338.6 MB, free: 1.488 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.81e-05/0.03404, allocations: 334.8 kB / 338.9 MB, free: 1.152 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007105/0.03475, allocations: 473 kB / 339.4 MB, free: 0.6836 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007355/0.03548, allocations: 0.5303 MB / 339.9 MB, free: 144 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001268/0.03675, allocations: 0.8103 MB / 340.7 MB, free: 15.32 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.03675, allocations: 0 / 340.7 MB, free: 15.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001514/0.03827, allocations: 1.001 MB / 341.7 MB, free: 14.3 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.03829, allocations: 8 kB / 341.7 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.884e-06/0.0383, allocations: 0 / 341.7 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.03831, allocations: 4 kB / 341.7 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004717/0.03879, allocations: 171.7 kB / 341.9 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.03879, allocations: 7.938 kB / 341.9 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003037/0.0391, allocations: 83.92 kB / 342 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.284e-05/0.03913, allocations: 19.98 kB / 342 MB, free: 14.02 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0001549/0.03929, allocations: 157.7 kB / 342.1 MB, free: 13.85 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.944e-05/0.03934, allocations: 27.81 kB / 342.2 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.573e-05/0.0394, allocations: 55.3 kB / 342.2 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.03941, allocations: 4 kB / 342.2 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.015e-05/0.03942, allocations: 11.94 kB / 342.2 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.03942, allocations: 3.984 kB / 342.2 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002317/0.04174, allocations: 1.74 MB / 344 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.503e-06/0.04175, allocations: 9 kB / 344 MB, free: 11.85 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003078/0.04205, allocations: 147.8 kB / 344.1 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.534e-06/0.04206, allocations: 8 kB / 344.1 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.478e-05/0.04209, allocations: 16 kB / 344.2 MB, free: 11.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.929e-06/0.0421, allocations: 19.92 kB / 344.2 MB, free: 11.66 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.045e-06/0.0421, allocations: 19.86 kB / 344.2 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001544/0.04365, allocations: 1.228 MB / 345.4 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001057/0.04375, allocations: 71.78 kB / 345.5 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.486e-05/0.04379, allocations: 20 kB / 345.5 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002532/0.04404, allocations: 75.84 kB / 345.6 MB, free: 10.12 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001291/0.04417, allocations: 91.7 kB / 345.7 MB, free: 10.03 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-05/0.04419, allocations: 20 kB / 345.7 MB, free: 10.01 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001061/0.0443, allocations: 160.3 kB / 345.9 MB, free: 9.855 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0443, allocations: 3.938 kB / 345.9 MB, free: 9.852 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003206/0.04462, allocations: 96 kB / 345.9 MB, free: 9.758 MB / 314.7 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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.001799/0.04642, allocations: 1.796 MB / 347.7 MB, free: 7.828 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001252/0.04767, allocations: 0.7945 MB / 348.5 MB, free: 7.031 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.04767, allocations: 0 / 348.5 MB, free: 7.031 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005401/0.04821, allocations: 329.5 kB / 348.9 MB, free: 6.711 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004249/0.04864, allocations: 62.05 kB / 348.9 MB, free: 6.656 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006465/0.0551, allocations: 5.224 MB / 354.1 MB, free: 1.109 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001321/0.05523, allocations: 180.1 kB / 354.3 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002653/0.0555, allocations: 78.88 kB / 354.4 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001897/0.05569, allocations: 96.47 kB / 354.5 MB, free: 0.7422 MB / 314.7 MB Notification: Performance of SimCode: time 9.62e-07/0.05569, allocations: 4 kB / 354.5 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0215/0.07719, allocations: 9.502 MB / 364 MB, free: 7.391 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.88/6.957, allocations: 7.266 kB / 364 MB, free: 7.387 MB / 330.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv. Warning: Get data of variable load.phi from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.73817774001509]