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.001237/0.001237, allocations: 113 kB / 19.04 MB, free: 3.254 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.001332/0.001332, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 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.401/1.401, allocations: 225.6 MB / 250.8 MB, free: 13.34 MB / 206.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: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 51.91 kB / 368.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3247/0.3262, allocations: 52.14 MB / 420.8 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003972/0.3302, allocations: 2.388 MB / 423.2 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0016/0.3318, allocations: 0.8143 MB / 424 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001422/0.3319, allocations: 4 kB / 424 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000302/0.3322, allocations: 55.56 kB / 424.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002024/0.3324, allocations: 63.5 kB / 424.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004901/0.3329, allocations: 179.6 kB / 424.3 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004428/0.3334, allocations: 383.6 kB / 424.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002022/0.3336, allocations: 71.84 kB / 424.8 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00025/0.3338, allocations: 171.4 kB / 424.9 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002576/0.3341, allocations: 175.3 kB / 425.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.222e-05/0.3341, allocations: 36 kB / 425.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.412e-05/0.3342, allocations: 36 kB / 425.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000114/0.3343, allocations: 95.7 kB / 425.3 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001437/0.3344, allocations: 151.2 kB / 425.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004261/0.3349, allocations: 335.8 kB / 425.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.3349, allocations: 7.938 kB / 425.8 MB, free: 10.17 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3349, allocations: 0 / 425.8 MB, free: 10.17 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.3349, allocations: 0 / 425.8 MB, free: 10.17 MB / 334.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.001452/0.3363, allocations: 0.6275 MB / 426.4 MB, free: 9.496 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.112e-05/0.3364, allocations: 15.89 kB / 426.4 MB, free: 9.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.975e-05/0.3365, allocations: 36.75 kB / 426.4 MB, free: 9.445 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005714/0.337, allocations: 284.4 kB / 426.7 MB, free: 9.129 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002314/0.3373, allocations: 138.2 kB / 426.9 MB, free: 8.977 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.091e-05/0.3374, allocations: 28.38 kB / 426.9 MB, free: 8.949 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001216/0.3386, allocations: 0.5661 MB / 427.5 MB, free: 8.355 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.355e-05/0.3386, allocations: 7.953 kB / 427.5 MB, free: 8.348 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.741e-05/0.3386, allocations: 11.98 kB / 427.5 MB, free: 8.336 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.3386, allocations: 8 kB / 427.5 MB, free: 8.328 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001303/0.3399, allocations: 0.5074 MB / 428 MB, free: 7.82 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001547/0.3415, allocations: 1.003 MB / 429 MB, free: 6.738 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001509/0.343, allocations: 486.6 kB / 429.5 MB, free: 6.227 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005876/0.3436, allocations: 231.3 kB / 429.7 MB, free: 5.988 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.55e-05/0.3436, allocations: 8 kB / 429.7 MB, free: 5.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.051e-05/0.3437, allocations: 50.48 kB / 429.7 MB, free: 5.922 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 1.744e-06/0.3437, allocations: 0 / 429.7 MB, free: 5.922 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03707/0.3808, allocations: 5.731 MB / 435.5 MB, free: 188 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001234/0.3809, allocations: 144.9 kB / 435.6 MB, free: 12 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002429/0.3811, allocations: 200.4 kB / 435.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.089e-05/0.3812, allocations: 33.7 kB / 435.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/0.3813, allocations: 149.7 kB / 436 MB, free: 15.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002168/0.3815, allocations: 206.2 kB / 436.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003023/0.3818, allocations: 106.7 kB / 436.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.382, allocations: 342.8 kB / 436.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001545/0.3835, allocations: 0.6187 MB / 437.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001671/0.3852, allocations: 0.8002 MB / 438.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002955/0.3882, allocations: 1.244 MB / 439.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.3882, allocations: 0 / 439.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003471/0.3916, allocations: 1.41 MB / 440.7 MB, free: 10.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.3917, allocations: 8 kB / 440.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.3917, allocations: 4 kB / 440.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.53e-05/0.3917, allocations: 8 kB / 440.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001314/0.393, allocations: 207.7 kB / 440.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.724e-05/0.393, allocations: 11.94 kB / 440.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009124/0.3939, allocations: 103.8 kB / 441 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.794e-05/0.394, allocations: 28 kB / 441.1 MB, free: 10.36 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.0003262/0.3944, allocations: 189.5 kB / 441.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003091/0.3947, allocations: 161.5 kB / 441.4 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001685/0.3948, allocations: 71.28 kB / 441.5 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/0.3948, allocations: 8 kB / 441.5 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.3948, allocations: 8 kB / 441.5 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.3949, allocations: 3.984 kB / 441.5 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004724/0.3996, allocations: 2.172 MB / 443.7 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/0.3996, allocations: 8 kB / 443.7 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000727/0.4003, allocations: 179.7 kB / 443.9 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.852e-05/0.4003, allocations: 16.47 kB / 443.9 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.028e-05/0.4004, allocations: 24 kB / 443.9 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.71e-05/0.4004, allocations: 31.86 kB / 443.9 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.11e-05/0.4004, allocations: 15.94 kB / 443.9 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003083/0.4035, allocations: 1.549 MB / 445.5 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000212/0.4037, allocations: 172.8 kB / 445.7 MB, free: 5.395 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.447e-05/0.4038, allocations: 24 kB / 445.7 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005543/0.4044, allocations: 75.91 kB / 445.8 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002132/0.4046, allocations: 95.67 kB / 445.9 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.399e-05/0.4046, allocations: 28 kB / 445.9 MB, free: 5.176 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001465/0.4048, allocations: 148 kB / 446 MB, free: 5.031 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4048, allocations: 4 kB / 446 MB, free: 5.027 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006683/0.4054, allocations: 120 kB / 446.1 MB, free: 4.91 MB / 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.0001862/0.4056, allocations: 135 kB / 446.3 MB, free: 4.766 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002682/0.4083, allocations: 1.029 MB / 447.3 MB, free: 3.734 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.4083, allocations: 3.938 kB / 447.3 MB, free: 3.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009583/0.4093, allocations: 330.4 kB / 447.6 MB, free: 3.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008705/0.4101, allocations: 129.3 kB / 447.8 MB, free: 3.285 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002384/0.4125, allocations: 1.185 MB / 448.9 MB, free: 1.941 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004592/0.413, allocations: 0.809 MB / 449.8 MB, free: 1.105 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004688/0.4134, allocations: 95.31 kB / 449.8 MB, free: 1.012 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002703/0.4137, allocations: 47.38 kB / 449.9 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4137, allocations: 0 / 449.9 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of Templates: time 0.01536/0.4291, allocations: 8.697 MB / 458.6 MB, free: 8.293 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.805747297592461]