Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.001584/0.001584, allocations: 111 kB / 21.18 MB, free: 0.5195 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.00169/0.00169, allocations: 210.7 kB / 24.48 MB, free: 3.699 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 2.089/2.089, allocations: 230.6 MB / 258.2 MB, free: 7.789 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: 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.1.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.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001761/0.001761, allocations: 59.86 kB / 379 MB, free: 2.488 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3617/0.3635, allocations: 53.36 MB / 432.3 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.00451/0.368, allocations: 2.273 MB / 434.6 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001857/0.3698, allocations: 0.7988 MB / 435.4 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001677/0.37, allocations: 7.938 kB / 435.4 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003033/0.3703, allocations: 55.56 kB / 435.4 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002493/0.3706, allocations: 63.5 kB / 435.5 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005879/0.3711, allocations: 175.6 kB / 435.7 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005098/0.3717, allocations: 387.5 kB / 436.1 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002086/0.3719, allocations: 71.31 kB / 436.1 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003806/0.3722, allocations: 175.4 kB / 436.3 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002967/0.3725, allocations: 179.3 kB / 436.5 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.084e-05/0.3726, allocations: 40 kB / 436.5 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.716e-05/0.3727, allocations: 36 kB / 436.5 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001322/0.3728, allocations: 103.7 kB / 436.6 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001461/0.373, allocations: 115.4 kB / 436.8 MB, free: 2.281 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004658/0.3734, allocations: 350.3 kB / 437.1 MB, free: 1.941 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3734, allocations: 0 / 437.1 MB, free: 1.941 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3734, allocations: 0 / 437.1 MB, free: 1.941 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.3734, allocations: 0 / 437.1 MB, free: 1.941 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.001484/0.3749, allocations: 0.5588 MB / 437.7 MB, free: 1.355 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.375, allocations: 8.031 kB / 437.7 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001023/0.3751, allocations: 44.7 kB / 437.7 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004727/0.3755, allocations: 218.5 kB / 437.9 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003626/0.3759, allocations: 351.9 kB / 438.3 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.286e-05/0.376, allocations: 28.38 kB / 438.3 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001562/0.3775, allocations: 0.5739 MB / 438.9 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.848e-05/0.3776, allocations: 0 / 438.9 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.536e-05/0.3776, allocations: 12 kB / 438.9 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.3776, allocations: 8 kB / 438.9 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001826/0.3794, allocations: 0.5121 MB / 439.4 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001789/0.3812, allocations: 0.856 MB / 440.3 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001898/0.3831, allocations: 474.4 kB / 440.7 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008184/0.384, allocations: 239.4 kB / 441 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.07e-05/0.384, allocations: 4 kB / 441 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.042e-05/0.384, allocations: 46.5 kB / 441 MB, free: 13.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.484e-06/0.384, allocations: 0 / 441 MB, free: 13.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.05203/0.4361, allocations: 5.743 MB / 446.7 MB, free: 8.027 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001441/0.4362, allocations: 156.9 kB / 446.9 MB, free: 7.844 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002819/0.4365, allocations: 208.3 kB / 447.1 MB, free: 7.629 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001065/0.4366, allocations: 41.7 kB / 447.1 MB, free: 7.582 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.4367, allocations: 133.8 kB / 447.3 MB, free: 7.445 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002596/0.437, allocations: 206.3 kB / 447.5 MB, free: 7.242 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003747/0.4374, allocations: 110.7 kB / 447.6 MB, free: 7.129 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.4375, allocations: 350.7 kB / 447.9 MB, free: 6.777 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002082/0.4396, allocations: 0.6188 MB / 448.5 MB, free: 6.156 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002355/0.442, allocations: 0.8042 MB / 449.3 MB, free: 5.277 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004157/0.4461, allocations: 1.256 MB / 450.6 MB, free: 3.949 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-06/0.4461, allocations: 8 kB / 450.6 MB, free: 3.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.004879/0.451, allocations: 1.404 MB / 452 MB, free: 2.527 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.64e-05/0.451, allocations: 8 kB / 452 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.439e-05/0.4511, allocations: 8.297 kB / 452 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.312e-05/0.4511, allocations: 15.94 kB / 452 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001781/0.4529, allocations: 207.7 kB / 452.3 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.246e-05/0.4529, allocations: 11.94 kB / 452.3 MB, free: 2.281 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00127/0.4542, allocations: 119.7 kB / 452.4 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001226/0.4543, allocations: 27.98 kB / 452.4 MB, free: 2.137 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: 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 (84): * Single equations (assignments): 84 * 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.0004267/0.4547, allocations: 181.6 kB / 452.6 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004159/0.4552, allocations: 157.3 kB / 452.7 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001944/0.4553, allocations: 59.31 kB / 452.8 MB, free: 1.734 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.287e-05/0.4554, allocations: 11.98 kB / 452.8 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.266e-05/0.4554, allocations: 8.469 kB / 452.8 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.4554, allocations: 3.938 kB / 452.8 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006576/0.462, allocations: 1.91 MB / 454.7 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.502e-05/0.462, allocations: 11.94 kB / 454.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001062/0.463, allocations: 179.7 kB / 454.9 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.196e-05/0.4631, allocations: 16.47 kB / 454.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.648e-05/0.4632, allocations: 32 kB / 455 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.916e-05/0.4632, allocations: 19.88 kB / 455 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.629e-05/0.4632, allocations: 19.88 kB / 455 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004589/0.4678, allocations: 1.566 MB / 456.6 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002907/0.4681, allocations: 91.67 kB / 456.7 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.567e-05/0.4682, allocations: 27.98 kB / 456.7 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008225/0.469, allocations: 83.92 kB / 456.8 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002607/0.4692, allocations: 95.64 kB / 456.9 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.069e-05/0.4693, allocations: 28 kB / 456.9 MB, free: 13.33 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001794/0.4695, allocations: 149.2 kB / 457 MB, free: 13.18 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4695, allocations: 4 kB / 457 MB, free: 13.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000939/0.4704, allocations: 120 kB / 457.2 MB, free: 13.06 MB / 366.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: 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.0002074/0.4707, allocations: 142.9 kB / 457.3 MB, free: 12.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003755/0.4744, allocations: 1.039 MB / 458.3 MB, free: 11.87 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.646e-06/0.4744, allocations: 4 kB / 458.3 MB, free: 11.87 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00135/0.4758, allocations: 334 kB / 458.7 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001164/0.4769, allocations: 142.6 kB / 458.8 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003009/0.4799, allocations: 1.185 MB / 460 MB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002735/0.4802, allocations: 211.3 kB / 460.2 MB, free: 9.832 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006186/0.4808, allocations: 99.3 kB / 460.3 MB, free: 9.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003729/0.4812, allocations: 35.44 kB / 460.3 MB, free: 9.695 MB / 366.1 MB Notification: Performance of SimCode: time 4.3e-07/0.4812, allocations: 0 / 460.3 MB, free: 9.695 MB / 366.1 MB Notification: Performance of Templates: time 0.04351/0.5247, allocations: 9.407 MB / 469.7 MB, free: 376 kB / 366.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 7.261278796009719]