Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.001649/0.001649, allocations: 112.2 kB / 21.19 MB, free: 0.7812 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.001862/0.001862, allocations: 214.5 kB / 24.49 MB, free: 4.18 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 1.547/1.547, allocations: 230.6 MB / 258.3 MB, free: 8.023 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.SuperSampled,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.SuperSampled") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,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.SuperSampled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001598/0.001598, allocations: 47.92 kB / 379 MB, free: 2.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.351/0.3526, allocations: 53.37 MB / 432.4 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004072/0.3567, allocations: 2.358 MB / 434.7 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001584/0.3583, allocations: 0.8183 MB / 435.6 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001643/0.3584, allocations: 7.938 kB / 435.6 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002997/0.3587, allocations: 51.58 kB / 435.6 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002063/0.3589, allocations: 59.5 kB / 435.7 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005168/0.3595, allocations: 179.6 kB / 435.8 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004625/0.3599, allocations: 375.6 kB / 436.2 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001845/0.3601, allocations: 67.8 kB / 436.3 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003185/0.3604, allocations: 171.5 kB / 436.4 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002654/0.3607, allocations: 175.3 kB / 436.6 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.412e-05/0.3607, allocations: 36 kB / 436.7 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.157e-05/0.3608, allocations: 32 kB / 436.7 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001158/0.3609, allocations: 107.6 kB / 436.8 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001436/0.3611, allocations: 139.2 kB / 436.9 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004193/0.3615, allocations: 327.9 kB / 437.2 MB, free: 2.074 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.3615, allocations: 4 kB / 437.3 MB, free: 2.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3615, allocations: 0 / 437.3 MB, free: 2.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.064e-05/0.3615, allocations: 3.938 kB / 437.3 MB, free: 2.066 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.0012/0.3627, allocations: 0.5405 MB / 437.8 MB, free: 1.496 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.3627, allocations: 8.031 kB / 437.8 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.153e-05/0.3628, allocations: 36.75 kB / 437.8 MB, free: 1.453 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004537/0.3633, allocations: 221.9 kB / 438.1 MB, free: 1.211 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003585/0.3636, allocations: 347.9 kB / 438.4 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.894e-05/0.3637, allocations: 32.33 kB / 438.4 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001163/0.3649, allocations: 0.5388 MB / 439 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/0.3649, allocations: 4 kB / 439 MB, free: 208 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.755e-05/0.3649, allocations: 12 kB / 439 MB, free: 196 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.3649, allocations: 8 kB / 439 MB, free: 188 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001324/0.3663, allocations: 0.5042 MB / 439.5 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001582/0.3678, allocations: 0.949 MB / 440.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001535/0.3694, allocations: 482.6 kB / 440.9 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005928/0.37, allocations: 235.4 kB / 441.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.864e-05/0.37, allocations: 15.98 kB / 441.2 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.784e-05/0.3701, allocations: 42.44 kB / 441.2 MB, free: 13.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.074e-06/0.3701, allocations: 0 / 441.2 MB, free: 13.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03666/0.4067, allocations: 5.716 MB / 446.9 MB, free: 8.121 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001267/0.4069, allocations: 152.9 kB / 447.1 MB, free: 7.941 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002474/0.4071, allocations: 192.1 kB / 447.3 MB, free: 7.746 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.427e-05/0.4072, allocations: 37.7 kB / 447.3 MB, free: 7.703 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.4073, allocations: 141.8 kB / 447.4 MB, free: 7.559 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002102/0.4075, allocations: 202.3 kB / 447.6 MB, free: 7.359 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002785/0.4078, allocations: 115 kB / 447.7 MB, free: 7.242 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.408, allocations: 338.8 kB / 448.1 MB, free: 6.902 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001564/0.4095, allocations: 0.6188 MB / 448.7 MB, free: 6.281 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001728/0.4113, allocations: 0.8002 MB / 449.5 MB, free: 5.406 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003046/0.4143, allocations: 1.259 MB / 450.7 MB, free: 4.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.4143, allocations: 0 / 450.7 MB, free: 4.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003501/0.4178, allocations: 1.394 MB / 452.1 MB, free: 2.668 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/0.4178, allocations: 4 kB / 452.1 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/0.4179, allocations: 12.25 kB / 452.2 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.602e-05/0.4179, allocations: 8 kB / 452.2 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001347/0.4192, allocations: 207.9 kB / 452.4 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.232e-05/0.4192, allocations: 15.94 kB / 452.4 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009193/0.4202, allocations: 107.7 kB / 452.5 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.018e-05/0.4202, allocations: 27.98 kB / 452.5 MB, free: 2.293 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.000329/0.4206, allocations: 185.6 kB / 452.7 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003108/0.4209, allocations: 157.3 kB / 452.9 MB, free: 1.941 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001768/0.4211, allocations: 59.3 kB / 452.9 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.558e-06/0.4211, allocations: 8 kB / 452.9 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/0.4211, allocations: 4 kB / 452.9 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.4211, allocations: 3.984 kB / 452.9 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004901/0.426, allocations: 2.136 MB / 455.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.339e-05/0.426, allocations: 16.25 kB / 455.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007404/0.4267, allocations: 187.6 kB / 455.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-05/0.4268, allocations: 12 kB / 455.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.182e-05/0.4268, allocations: 24 kB / 455.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.23e-05/0.4268, allocations: 23.92 kB / 455.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.445e-05/0.4268, allocations: 15.88 kB / 455.3 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00314/0.43, allocations: 1.549 MB / 456.9 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002019/0.4302, allocations: 95.62 kB / 457 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.421e-05/0.4303, allocations: 24 kB / 457 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005573/0.4308, allocations: 84.16 kB / 457.1 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002047/0.431, allocations: 95.64 kB / 457.2 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.668e-05/0.4311, allocations: 31.94 kB / 457.2 MB, free: 13.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001449/0.4312, allocations: 151.4 kB / 457.4 MB, free: 13.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4312, allocations: 0 / 457.4 MB, free: 13.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006604/0.4319, allocations: 124 kB / 457.5 MB, free: 12.98 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: 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.0001789/0.4321, allocations: 134.9 kB / 457.6 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002712/0.4348, allocations: 1.027 MB / 458.6 MB, free: 11.81 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.832e-06/0.4348, allocations: 4.062 kB / 458.6 MB, free: 11.8 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009504/0.4357, allocations: 333.8 kB / 459 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008478/0.4366, allocations: 126.9 kB / 459.1 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002414/0.439, allocations: 1.202 MB / 460.3 MB, free: 9.988 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000481/0.4395, allocations: 0.8128 MB / 461.1 MB, free: 9.148 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003146/0.4398, allocations: 43.44 kB / 461.1 MB, free: 9.105 MB / 366.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4398, allocations: 0 / 461.1 MB, free: 9.105 MB / 366.1 MB Notification: Performance of Templates: time 0.0102/0.45, allocations: 7.198 MB / 468.3 MB, free: 1.926 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.113172016106546]