Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.0008773/0.0008773, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008551/0.0008551, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8896/0.8896, allocations: 177.1 MB / 204.3 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] 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.Continuous,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.223e-06/1.223e-06, allocations: 0 / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.3e-05/1.423e-05, allocations: 6.219 kB / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002133/0.002147, allocations: 2.085 MB / 326.6 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008408/0.002988, allocations: 0.6625 MB / 327.3 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.118e-05/0.003079, allocations: 7.938 kB / 327.3 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002367/0.003316, allocations: 43.7 kB / 327.3 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001146/0.00343, allocations: 51.56 kB / 327.4 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002619/0.003692, allocations: 135.7 kB / 327.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002541/0.003946, allocations: 343.1 kB / 327.9 MB, free: 12.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001262/0.004072, allocations: 49.11 kB / 327.9 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002428/0.004315, allocations: 215.5 kB / 328.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000139/0.004454, allocations: 123.7 kB / 328.2 MB, free: 12.24 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.277e-05/0.004487, allocations: 32 kB / 328.3 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.684e-05/0.004514, allocations: 28 kB / 328.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.113e-05/0.004585, allocations: 95.7 kB / 328.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.026e-05/0.004645, allocations: 87.78 kB / 328.5 MB, free: 12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002278/0.004873, allocations: 307.1 kB / 328.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.563e-06/0.004875, allocations: 0 / 328.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.12e-07/0.004875, allocations: 4 kB / 328.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.817e-06/0.004879, allocations: 0 / 328.8 MB, free: 11.7 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.000676/0.005555, allocations: 0.5051 MB / 329.3 MB, free: 11.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.005594, allocations: 11.97 kB / 329.3 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.127e-05/0.005645, allocations: 70.72 kB / 329.4 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.508e-05/0.00569, allocations: 32.8 kB / 329.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002374/0.005928, allocations: 186 kB / 329.6 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001873/0.006115, allocations: 343.8 kB / 329.9 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.623e-05/0.006151, allocations: 24.38 kB / 329.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005331/0.006684, allocations: 374.7 kB / 330.3 MB, free: 10.03 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.775e-05/0.006702, allocations: 11.89 kB / 330.3 MB, free: 10.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.167e-05/0.006724, allocations: 8 kB / 330.3 MB, free: 10.01 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.313e-06/0.006731, allocations: 4 kB / 330.3 MB, free: 10.01 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007745/0.007505, allocations: 0.4938 MB / 330.8 MB, free: 9.512 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001044/0.00855, allocations: 0.9024 MB / 331.7 MB, free: 8.555 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000584/0.009134, allocations: 298.4 kB / 332 MB, free: 8.254 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000292/0.009426, allocations: 168.7 kB / 332.2 MB, free: 8.086 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.793e-05/0.009454, allocations: 4 kB / 332.2 MB, free: 8.082 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.287e-05/0.009477, allocations: 42.55 kB / 332.2 MB, free: 8.031 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.463e-06/0.009478, allocations: 0 / 332.2 MB, free: 8.031 MB / 298.7 MB Notification: Performance of matching and sorting (n=53): time 0.01322/0.02269, allocations: 5.681 MB / 337.9 MB, free: 2.297 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.327e-05/0.02273, allocations: 59.84 kB / 338 MB, free: 2.227 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000156/0.02288, allocations: 214.8 kB / 338.2 MB, free: 2.008 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.587e-05/0.02292, allocations: 33.7 kB / 338.2 MB, free: 1.969 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.572e-05/0.02298, allocations: 153 kB / 338.4 MB, free: 1.812 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.901e-05/0.02308, allocations: 182.4 kB / 338.5 MB, free: 1.633 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001315/0.02322, allocations: 94.28 kB / 338.6 MB, free: 1.535 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.377e-05/0.02331, allocations: 342.8 kB / 339 MB, free: 1.191 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007079/0.02402, allocations: 465 kB / 339.4 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007319/0.02475, allocations: 0.5264 MB / 339.9 MB, free: 196 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001273/0.02602, allocations: 0.8142 MB / 340.8 MB, free: 15.36 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.02602, allocations: 0 / 340.8 MB, free: 15.36 MB / 314.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001491/0.02751, allocations: 0.9969 MB / 341.7 MB, free: 14.36 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.02753, allocations: 7.984 kB / 341.8 MB, free: 14.35 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.02754, allocations: 128 / 341.8 MB, free: 14.35 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.02755, allocations: 8 kB / 341.8 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004441/0.02799, allocations: 167.7 kB / 341.9 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.028, allocations: 11.92 kB / 341.9 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003061/0.02831, allocations: 87.88 kB / 342 MB, free: 14.08 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.127e-05/0.02834, allocations: 20 kB / 342 MB, free: 14.06 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.0001396/0.02848, allocations: 157.8 kB / 342.2 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.567e-05/0.02852, allocations: 27.81 kB / 342.2 MB, free: 13.87 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.266e-05/0.02858, allocations: 47.31 kB / 342.3 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.02858, allocations: 8 kB / 342.3 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.02859, allocations: 7.875 kB / 342.3 MB, free: 13.81 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.02859, allocations: 3.984 kB / 342.3 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002245/0.03084, allocations: 1.744 MB / 344 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.03084, allocations: 8 kB / 344 MB, free: 11.9 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003067/0.03115, allocations: 147.8 kB / 344.2 MB, free: 11.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.083e-05/0.03116, allocations: 12 kB / 344.2 MB, free: 11.74 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.602e-05/0.03119, allocations: 24.39 kB / 344.2 MB, free: 11.72 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.154e-06/0.03119, allocations: 15.94 kB / 344.2 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/0.0312, allocations: 19.88 kB / 344.3 MB, free: 11.68 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001529/0.03273, allocations: 1.22 MB / 345.5 MB, free: 10.33 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.486e-05/0.03282, allocations: 63.84 kB / 345.5 MB, free: 10.27 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.161e-05/0.03285, allocations: 24 kB / 345.6 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002512/0.03311, allocations: 79.84 kB / 345.6 MB, free: 10.17 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001262/0.03323, allocations: 87.7 kB / 345.7 MB, free: 10.08 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.169e-05/0.03325, allocations: 27.94 kB / 345.8 MB, free: 10.05 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001013/0.03335, allocations: 156.3 kB / 345.9 MB, free: 9.902 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03336, allocations: 0 / 345.9 MB, free: 9.902 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000294/0.03365, allocations: 96 kB / 346 MB, free: 9.809 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.001744/0.03539, allocations: 1.804 MB / 347.8 MB, free: 7.875 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001251/0.03664, allocations: 0.7945 MB / 348.6 MB, free: 7.078 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.03665, allocations: 4 kB / 348.6 MB, free: 7.074 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005506/0.0372, allocations: 325.8 kB / 348.9 MB, free: 6.758 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000391/0.03759, allocations: 55.97 kB / 349 MB, free: 6.703 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006062/0.04365, allocations: 5.226 MB / 354.2 MB, free: 1.16 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001315/0.04378, allocations: 176.2 kB / 354.4 MB, free: 0.9648 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002339/0.04402, allocations: 82.88 kB / 354.5 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001969/0.04421, allocations: 100.5 kB / 354.6 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of SimCode: time 6.41e-07/0.04421, allocations: 0 / 354.6 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02056/0.06477, allocations: 9.515 MB / 364.1 MB, free: 7.465 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.76/6.825, allocations: 7.016 kB / 364.1 MB, free: 7.461 MB / 330.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --stepSize=0.000798722 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/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_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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: 8.477185820229352]