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.001149/0.001149, allocations: 78.19 kB / 21.42 MB, free: 3.078 MB / 18.57 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.001034/0.001034, allocations: 152 kB / 24.81 MB, free: 9.285 MB / 18.57 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.022/1.022, allocations: 173.3 MB / 201.4 MB, free: 9.215 MB / 186.7 MB " [Timeout remaining time 179] 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 1.593e-06/1.593e-06, allocations: 0 / 268.4 MB, free: 6.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.814e-05/2.974e-05, allocations: 6.312 kB / 268.4 MB, free: 6.227 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.00471/0.00474, allocations: 2.343 MB / 270.7 MB, free: 3.863 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001195/0.005935, allocations: 0.7947 MB / 271.5 MB, free: 3.062 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001439/0.006079, allocations: 7.938 kB / 271.5 MB, free: 3.055 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000296/0.006375, allocations: 51.56 kB / 271.6 MB, free: 3.004 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001851/0.00656, allocations: 59.5 kB / 271.6 MB, free: 2.945 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003632/0.006923, allocations: 187.4 kB / 271.8 MB, free: 2.762 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002911/0.007214, allocations: 383.5 kB / 272.2 MB, free: 2.387 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001758/0.00739, allocations: 68.34 kB / 272.3 MB, free: 2.32 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004639/0.007854, allocations: 231.5 kB / 272.5 MB, free: 2.094 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001941/0.008048, allocations: 147.6 kB / 272.6 MB, free: 1.949 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.735e-05/0.008095, allocations: 36 kB / 272.7 MB, free: 1.914 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.405e-05/0.008139, allocations: 32 kB / 272.7 MB, free: 1.883 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000101/0.00824, allocations: 103.6 kB / 272.8 MB, free: 1.781 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.75e-05/0.008328, allocations: 103.8 kB / 272.9 MB, free: 1.68 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000304/0.008632, allocations: 259 kB / 273.1 MB, free: 1.426 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.008636, allocations: 0 / 273.1 MB, free: 1.426 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.008638, allocations: 4 kB / 273.2 MB, free: 1.422 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.008643, allocations: 0 / 273.2 MB, free: 1.422 MB / 250.7 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.0007698/0.009413, allocations: 0.652 MB / 273.8 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.00945, allocations: 8.031 kB / 273.8 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.216e-05/0.009542, allocations: 68.75 kB / 273.9 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002467/0.009788, allocations: 212.6 kB / 274.1 MB, free: 436 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001799/0.009968, allocations: 343.9 kB / 274.4 MB, free: 20 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.805e-05/0.01006, allocations: 32.44 kB / 274.5 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005118/0.01057, allocations: 433.2 kB / 274.9 MB, free: 15.53 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.01058, allocations: 4.141 kB / 274.9 MB, free: 15.52 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.474e-05/0.01061, allocations: 20.11 kB / 274.9 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.01061, allocations: 8 kB / 274.9 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002869/0.0109, allocations: 195.7 kB / 275.1 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009563/0.01186, allocations: 0.8943 MB / 276 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005342/0.01239, allocations: 316.7 kB / 276.3 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001364/0.01253, allocations: 126.8 kB / 276.4 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.857e-05/0.01257, allocations: 11.98 kB / 276.4 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.699e-05/0.01259, allocations: 45.33 kB / 276.5 MB, free: 13.79 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 2.475e-06/0.0126, allocations: 0 / 276.5 MB, free: 13.79 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.006891/0.01949, allocations: 2.418 MB / 278.9 MB, free: 11.36 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.127e-05/0.01956, allocations: 149 kB / 279 MB, free: 11.19 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001585/0.01972, allocations: 242.5 kB / 279.3 MB, free: 10.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.033e-05/0.01978, allocations: 37.7 kB / 279.3 MB, free: 10.89 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.514e-05/0.01986, allocations: 196.4 kB / 279.5 MB, free: 10.69 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001364/0.02, allocations: 198.3 kB / 279.7 MB, free: 10.49 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001857/0.02018, allocations: 95.95 kB / 279.8 MB, free: 10.39 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.02032, allocations: 0.5157 MB / 280.3 MB, free: 9.863 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000308/0.02063, allocations: 253.2 kB / 280.6 MB, free: 9.617 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006527/0.02128, allocations: 360 kB / 280.9 MB, free: 9.227 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005672/0.02185, allocations: 0.5419 MB / 281.5 MB, free: 8.645 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.02185, allocations: 0 / 281.5 MB, free: 8.645 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.000836/0.02269, allocations: 0.6613 MB / 282.1 MB, free: 7.977 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.0227, allocations: 8 kB / 282.1 MB, free: 7.969 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.02271, allocations: 7.938 kB / 282.1 MB, free: 7.961 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.02272, allocations: 4 kB / 282.1 MB, free: 7.957 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005862/0.02331, allocations: 163.7 kB / 282.3 MB, free: 7.797 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.451e-06/0.02332, allocations: 4 kB / 282.3 MB, free: 7.793 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003539/0.02367, allocations: 76.09 kB / 282.4 MB, free: 7.719 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.07e-05/0.02371, allocations: 19.92 kB / 282.4 MB, free: 7.699 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 67 * 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.0001898/0.0239, allocations: 192.4 kB / 282.6 MB, free: 7.5 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000213/0.02411, allocations: 149.7 kB / 282.7 MB, free: 7.348 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.063e-05/0.02419, allocations: 63.3 kB / 282.8 MB, free: 7.285 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.0242, allocations: 8 kB / 282.8 MB, free: 7.277 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.0242, allocations: 0 / 282.8 MB, free: 7.277 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.02421, allocations: 7.984 kB / 282.8 MB, free: 7.27 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001822/0.02603, allocations: 1.449 MB / 284.3 MB, free: 5.613 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.746e-06/0.02604, allocations: 12 kB / 284.3 MB, free: 5.602 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000363/0.02641, allocations: 164.6 kB / 284.4 MB, free: 5.441 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.738e-06/0.02642, allocations: 16 kB / 284.4 MB, free: 5.426 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.347e-05/0.02645, allocations: 28 kB / 284.5 MB, free: 5.398 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.141e-05/0.02646, allocations: 23.86 kB / 284.5 MB, free: 5.375 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.454e-06/0.02647, allocations: 16.02 kB / 284.5 MB, free: 5.359 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008419/0.02731, allocations: 1.058 MB / 285.6 MB, free: 4.098 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001319/0.02744, allocations: 79.7 kB / 285.6 MB, free: 4.02 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.378e-05/0.02748, allocations: 31.98 kB / 285.7 MB, free: 3.988 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002555/0.02774, allocations: 51.95 kB / 285.7 MB, free: 3.938 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/0.02787, allocations: 95.62 kB / 285.8 MB, free: 3.844 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.819e-05/0.02789, allocations: 24 kB / 285.8 MB, free: 3.82 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.233e-05/0.02797, allocations: 165 kB / 286 MB, free: 3.66 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02797, allocations: 0 / 286 MB, free: 3.66 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004208/0.02839, allocations: 120 kB / 286.1 MB, free: 3.543 MB / 266.7 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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.0001414/0.02853, allocations: 146.9 kB / 286.3 MB, free: 3.387 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006269/0.02916, allocations: 0.4959 MB / 286.8 MB, free: 2.887 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.02916, allocations: 4 kB / 286.8 MB, free: 2.883 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001935/0.02936, allocations: 167.3 kB / 286.9 MB, free: 2.719 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006323/0.02999, allocations: 144.7 kB / 287.1 MB, free: 2.582 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001701/0.03169, allocations: 1.124 MB / 288.2 MB, free: 1.242 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000111/0.0318, allocations: 126.8 kB / 288.3 MB, free: 1.102 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002813/0.03208, allocations: 79.19 kB / 288.4 MB, free: 1.027 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003357/0.03242, allocations: 138.1 kB / 288.5 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of SimCode: time 1.332e-06/0.03242, allocations: 0 / 288.5 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of Templates: time 0.01144/0.04386, allocations: 9.398 MB / 297.9 MB, free: 7.543 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9010137827135623]