Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.001905/0.001905, allocations: 99.86 kB / 20.96 MB, free: 3.461 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.001868/0.001868, allocations: 149.1 kB / 24.26 MB, free: 168 kB / 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.526/1.526, allocations: 173.3 MB / 200.8 MB, free: 9.312 MB / 186.7 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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 267.3 MB, free: 6.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.822e-05/3.991e-05, allocations: 6.312 kB / 267.3 MB, free: 6.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.004958/0.004997, allocations: 2.125 MB / 269.4 MB, free: 4.609 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001737/0.006734, allocations: 0.6353 MB / 270 MB, free: 3.969 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001343/0.006869, allocations: 4 kB / 270 MB, free: 3.965 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003363/0.007205, allocations: 55.55 kB / 270.1 MB, free: 3.91 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002242/0.007429, allocations: 51.58 kB / 270.2 MB, free: 3.859 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004986/0.007928, allocations: 127.7 kB / 270.3 MB, free: 3.734 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005818/0.00851, allocations: 343.1 kB / 270.6 MB, free: 3.398 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002098/0.008719, allocations: 52.45 kB / 270.7 MB, free: 3.344 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004184/0.009138, allocations: 203.5 kB / 270.9 MB, free: 3.145 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003117/0.00945, allocations: 123.7 kB / 271 MB, free: 3.023 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.296e-05/0.009532, allocations: 32 kB / 271 MB, free: 2.992 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.013e-05/0.009613, allocations: 32 kB / 271 MB, free: 2.961 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001608/0.009773, allocations: 91.69 kB / 271.1 MB, free: 2.871 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001614/0.009935, allocations: 91.78 kB / 271.2 MB, free: 2.781 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005878/0.01052, allocations: 315 kB / 271.5 MB, free: 2.473 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.788e-06/0.01053, allocations: 0 / 271.5 MB, free: 2.473 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.01053, allocations: 0 / 271.5 MB, free: 2.473 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.01053, allocations: 0 / 271.5 MB, free: 2.473 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001638/0.01217, allocations: 0.6085 MB / 272.1 MB, free: 1.828 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.01222, allocations: 8.031 kB / 272.1 MB, free: 1.82 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001737/0.01239, allocations: 60.8 kB / 272.2 MB, free: 1.762 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004738/0.01287, allocations: 191.6 kB / 272.4 MB, free: 1.551 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004436/0.01331, allocations: 347.8 kB / 272.7 MB, free: 1.145 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.264e-05/0.01339, allocations: 24.38 kB / 272.8 MB, free: 1.121 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001239/0.01463, allocations: 340.6 kB / 273.1 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/0.01465, allocations: 4 kB / 273.1 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.285e-05/0.0147, allocations: 8 kB / 273.1 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.553e-05/0.01471, allocations: 8 kB / 273.1 MB, free: 0.7539 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001983/0.01669, allocations: 441.6 kB / 273.5 MB, free: 332 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002584/0.01928, allocations: 0.9568 MB / 274.5 MB, free: 15.32 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001465/0.02074, allocations: 282.9 kB / 274.8 MB, free: 15.03 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007352/0.02148, allocations: 139.6 kB / 274.9 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.617e-05/0.02153, allocations: 12 kB / 274.9 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.809e-05/0.02157, allocations: 33.39 kB / 275 MB, free: 14.84 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 2.214e-06/0.02157, allocations: 0 / 275 MB, free: 14.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=53): time 0.02374/0.04531, allocations: 3.997 MB / 279 MB, free: 10.77 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.849e-05/0.04538, allocations: 59.91 kB / 279 MB, free: 10.7 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004494/0.04583, allocations: 269.7 kB / 279.3 MB, free: 10.42 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.634e-05/0.0459, allocations: 33.7 kB / 279.3 MB, free: 10.38 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001926/0.0461, allocations: 203.8 kB / 279.5 MB, free: 10.18 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002932/0.04639, allocations: 206.3 kB / 279.7 MB, free: 9.977 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003556/0.04675, allocations: 112 kB / 279.8 MB, free: 9.859 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004039/0.04715, allocations: 0.5352 MB / 280.4 MB, free: 9.312 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001872/0.04902, allocations: 401.1 kB / 280.7 MB, free: 8.922 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002014/0.05104, allocations: 0.4895 MB / 281.2 MB, free: 8.41 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003444/0.05448, allocations: 0.7617 MB / 282 MB, free: 7.629 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.05448, allocations: 0 / 282 MB, free: 7.629 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.004235/0.05872, allocations: 0.9267 MB / 282.9 MB, free: 6.691 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.506e-05/0.05874, allocations: 6.969 kB / 282.9 MB, free: 6.688 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-05/0.05876, allocations: 8.125 kB / 282.9 MB, free: 6.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.574e-05/0.05878, allocations: 4 kB / 282.9 MB, free: 6.676 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001401/0.06018, allocations: 151.8 kB / 283.1 MB, free: 6.527 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.7e-05/0.0602, allocations: 4 kB / 283.1 MB, free: 6.523 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009422/0.06114, allocations: 67.86 kB / 283.2 MB, free: 6.457 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.148e-05/0.06124, allocations: 19.98 kB / 283.2 MB, free: 6.438 MB / 266.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.0003603/0.0616, allocations: 200.5 kB / 283.4 MB, free: 6.23 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001919/0.06179, allocations: 47.81 kB / 283.4 MB, free: 6.184 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001898/0.06198, allocations: 47.31 kB / 283.5 MB, free: 6.137 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.177e-05/0.06199, allocations: 8 kB / 283.5 MB, free: 6.129 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.062, allocations: 0 / 283.5 MB, free: 6.129 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.484e-05/0.06201, allocations: 3.984 kB / 283.5 MB, free: 6.125 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006194/0.0682, allocations: 1.795 MB / 285.3 MB, free: 4.141 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-05/0.06822, allocations: 8 kB / 285.3 MB, free: 4.133 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009049/0.06913, allocations: 131.8 kB / 285.4 MB, free: 4.004 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.416e-05/0.06915, allocations: 12 kB / 285.4 MB, free: 3.992 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.727e-05/0.06922, allocations: 20 kB / 285.4 MB, free: 3.973 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.135e-05/0.06924, allocations: 15.94 kB / 285.5 MB, free: 3.957 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.918e-05/0.06926, allocations: 15.94 kB / 285.5 MB, free: 3.941 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004124/0.07338, allocations: 1.274 MB / 286.7 MB, free: 2.492 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002815/0.07366, allocations: 67.8 kB / 286.8 MB, free: 2.426 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.688e-05/0.07376, allocations: 31.92 kB / 286.8 MB, free: 2.395 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007216/0.07448, allocations: 47.95 kB / 286.9 MB, free: 2.348 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002963/0.07478, allocations: 95.64 kB / 287 MB, free: 2.254 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.238e-05/0.07484, allocations: 24 kB / 287 MB, free: 2.23 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002853/0.07513, allocations: 180.2 kB / 287.2 MB, free: 2.055 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.07513, allocations: 0 / 287.2 MB, free: 2.055 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007954/0.07592, allocations: 100 kB / 287.3 MB, free: 1.957 MB / 266.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.0002203/0.07614, allocations: 123 kB / 287.4 MB, free: 1.828 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.003316/0.07946, allocations: 0.7448 MB / 288.1 MB, free: 1.082 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.07946, allocations: 0 / 288.1 MB, free: 1.082 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001253/0.08072, allocations: 289.3 kB / 288.4 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.08173, allocations: 92.45 kB / 288.5 MB, free: 0.7109 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003371/0.0851, allocations: 1.055 MB / 289.6 MB, free: 15.48 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002899/0.08539, allocations: 180.2 kB / 289.8 MB, free: 15.28 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0006172/0.086, allocations: 78.88 kB / 289.8 MB, free: 15.21 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003138/0.08632, allocations: 32.5 kB / 289.9 MB, free: 15.18 MB / 282.7 MB Notification: Performance of SimCode: time 1.804e-06/0.08632, allocations: 0 / 289.9 MB, free: 15.18 MB / 282.7 MB Notification: Performance of Templates: time 0.0172/0.1035, allocations: 6.123 MB / 296 MB, free: 9.129 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 4.7282752939499915]