Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002092/0.002092, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002566/0.002566, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.542/1.542, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001694/0.001694, allocations: 47.92 kB / 373 MB, free: 10.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.125, allocations: 53.33 MB / 426.3 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004682/0.1297, allocations: 2.409 MB / 428.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002052/0.1317, allocations: 0.8728 MB / 429.6 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002133/0.132, allocations: 15.81 kB / 429.6 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003335/0.1323, allocations: 55.56 kB / 429.6 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002454/0.1325, allocations: 67.48 kB / 429.7 MB, free: 1.453 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007047/0.1332, allocations: 195.6 kB / 429.9 MB, free: 1.262 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00049/0.1337, allocations: 395.5 kB / 430.3 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001946/0.1339, allocations: 75.45 kB / 430.4 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003904/0.1343, allocations: 175.4 kB / 430.5 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002727/0.1346, allocations: 191.2 kB / 430.7 MB, free: 448 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.931e-05/0.1347, allocations: 36 kB / 430.8 MB, free: 412 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.266e-05/0.1347, allocations: 36 kB / 430.8 MB, free: 376 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001339/0.1348, allocations: 107.7 kB / 430.9 MB, free: 268 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002322/0.1351, allocations: 167.1 kB / 431.1 MB, free: 100 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2585/0.3936, allocations: 360.9 kB / 431.4 MB, free: 8.285 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3936, allocations: 0 / 431.4 MB, free: 8.285 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.3936, allocations: 0.5625 kB / 431.4 MB, free: 8.285 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.3936, allocations: 0 / 431.4 MB, free: 8.285 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001283/0.3949, allocations: 0.6788 MB / 432.1 MB, free: 7.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.3949, allocations: 10.12 kB / 432.1 MB, free: 7.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.208e-05/0.395, allocations: 72.89 kB / 432.2 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.447e-05/0.3951, allocations: 46.98 kB / 432.2 MB, free: 7.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004331/0.3955, allocations: 314.8 kB / 432.5 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002396/0.3958, allocations: 135.4 kB / 432.7 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.192e-05/0.3958, allocations: 33.81 kB / 432.7 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00119/0.397, allocations: 0.574 MB / 433.3 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.934e-05/0.3971, allocations: 2.094 kB / 433.3 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.393e-05/0.3971, allocations: 9.906 kB / 433.3 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.397e-06/0.3971, allocations: 7.844 kB / 433.3 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001342/0.3984, allocations: 0.5008 MB / 433.8 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001372/0.3998, allocations: 1.031 MB / 434.8 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001673/0.4015, allocations: 481.6 kB / 435.3 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006302/0.4021, allocations: 236.6 kB / 435.5 MB, free: 6.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.287e-05/0.4022, allocations: 5.922 kB / 435.5 MB, free: 6.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.064e-05/0.4022, allocations: 43.34 kB / 435.6 MB, free: 6.621 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.883e-06/0.4022, allocations: 0 / 435.6 MB, free: 6.621 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.04066/0.4429, allocations: 5.78 MB / 441.3 MB, free: 6.188 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.131e-05/0.4429, allocations: 147.5 kB / 441.5 MB, free: 6.027 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000286/0.4432, allocations: 258.1 kB / 441.7 MB, free: 5.879 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.186e-05/0.4433, allocations: 35.89 kB / 441.8 MB, free: 5.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.745e-05/0.4433, allocations: 151.7 kB / 441.9 MB, free: 5.703 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002012/0.4436, allocations: 199.8 kB / 442.1 MB, free: 5.551 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000309/0.4439, allocations: 119.5 kB / 442.2 MB, free: 5.484 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.684e-05/0.4439, allocations: 346.2 kB / 442.6 MB, free: 5.156 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001633/0.4456, allocations: 0.6123 MB / 443.2 MB, free: 4.918 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001756/0.4473, allocations: 0.7996 MB / 444 MB, free: 4.453 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003118/0.4504, allocations: 1.251 MB / 445.2 MB, free: 3.801 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.6e-06/0.4504, allocations: 5.688 kB / 445.2 MB, free: 3.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003624/0.4541, allocations: 1.4 MB / 446.6 MB, free: 3.242 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.559e-05/0.4541, allocations: 11.42 kB / 446.7 MB, free: 3.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.4541, allocations: 4.906 kB / 446.7 MB, free: 3.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.698e-05/0.4541, allocations: 10.3 kB / 446.7 MB, free: 3.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001451/0.4556, allocations: 208.3 kB / 446.9 MB, free: 3.238 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.014e-05/0.4556, allocations: 13.12 kB / 446.9 MB, free: 3.238 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009525/0.4566, allocations: 107.8 kB / 447 MB, free: 3.215 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.373e-05/0.4566, allocations: 24.62 kB / 447 MB, free: 3.211 MB / 350.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.0003575/0.457, allocations: 188.9 kB / 447.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003072/0.4573, allocations: 174.9 kB / 447.4 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001874/0.4575, allocations: 66.73 kB / 447.4 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.4575, allocations: 8.25 kB / 447.4 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.714e-05/0.4575, allocations: 5.375 kB / 447.4 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/0.4575, allocations: 5.609 kB / 447.5 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005005/0.4625, allocations: 2.183 MB / 449.6 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.409e-05/0.4626, allocations: 9.781 kB / 449.6 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007754/0.4633, allocations: 183.1 kB / 449.8 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.011e-05/0.4633, allocations: 13.81 kB / 449.8 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.494e-05/0.4634, allocations: 29.22 kB / 449.9 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.585e-05/0.4634, allocations: 18.31 kB / 449.9 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.449e-05/0.4634, allocations: 19.27 kB / 449.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003336/0.4668, allocations: 1.571 MB / 451.5 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002134/0.467, allocations: 180.9 kB / 451.7 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.818e-05/0.4671, allocations: 23.38 kB / 451.7 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006133/0.4677, allocations: 76.09 kB / 451.7 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002174/0.4679, allocations: 96.52 kB / 451.8 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.052e-05/0.468, allocations: 33.61 kB / 451.9 MB, free: 372 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001893/0.4681, allocations: 186.3 kB / 452.1 MB, free: 244 kB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4681, allocations: 4 kB / 452.1 MB, free: 240 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.001031/0.4692, allocations: 123.6 kB / 452.2 MB, free: 220 kB / 350.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.003942/0.4731, allocations: 2.135 MB / 454.3 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002973/0.4761, allocations: 1.024 MB / 455.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.4761, allocations: 1.969 kB / 455.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001031/0.4771, allocations: 338.1 kB / 455.7 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009879/0.4781, allocations: 142.3 kB / 455.8 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01449/0.4926, allocations: 6.909 MB / 462.7 MB, free: 8.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005617/0.4932, allocations: 0.8308 MB / 463.6 MB, free: 7.902 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005316/0.4937, allocations: 103.6 kB / 463.7 MB, free: 7.852 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004667/0.4942, allocations: 120.5 kB / 463.8 MB, free: 7.762 MB / 366.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4942, allocations: 0 / 463.8 MB, free: 7.762 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04125/0.5354, allocations: 11.69 MB / 475.5 MB, free: 14.16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.225/9.76, allocations: 8.047 kB / 475.5 MB, free: 14.16 MB / 382.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.548496006056666]