Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.001345/0.001345, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.004365/0.004365, allocations: 145.1 kB / 24.54 MB, free: 32 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 0.9532/0.9532, allocations: 173.4 MB / 201.1 MB, free: 9.328 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.AbsoluteClocks,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.AbsoluteClocks") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,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.AbsoluteClocks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 8.42e-07/8.42e-07, allocations: 0 / 268 MB, free: 6.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.878e-05/1.962e-05, allocations: 10.19 kB / 268 MB, free: 6.445 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003129/0.003149, allocations: 2.378 MB / 270.4 MB, free: 4.047 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001192/0.004341, allocations: 0.822 MB / 271.2 MB, free: 3.219 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000128/0.004469, allocations: 11.94 kB / 271.2 MB, free: 3.207 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001902/0.004659, allocations: 59.44 kB / 271.2 MB, free: 3.148 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001618/0.004821, allocations: 71.48 kB / 271.3 MB, free: 3.078 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003915/0.005212, allocations: 207.4 kB / 271.5 MB, free: 2.875 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003345/0.005547, allocations: 399.4 kB / 271.9 MB, free: 2.484 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001276/0.005674, allocations: 71.78 kB / 272 MB, free: 2.414 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002193/0.005894, allocations: 231.5 kB / 272.2 MB, free: 2.188 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001753/0.006069, allocations: 147.6 kB / 272.3 MB, free: 2.043 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.535e-05/0.006114, allocations: 36 kB / 272.4 MB, free: 2.008 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.404e-05/0.006158, allocations: 36 kB / 272.4 MB, free: 1.973 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.22e-05/0.00625, allocations: 115.6 kB / 272.5 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.729e-05/0.006348, allocations: 115.6 kB / 272.6 MB, free: 1.746 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000286/0.006634, allocations: 279 kB / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.563e-06/0.006635, allocations: 0 / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.006636, allocations: 0 / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.00664, allocations: 0 / 272.9 MB, free: 1.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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0008016/0.007441, allocations: 0.6946 MB / 273.6 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.505e-05/0.007466, allocations: 8.031 kB / 273.6 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.814e-05/0.007564, allocations: 80.7 kB / 273.7 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002685/0.007833, allocations: 251.9 kB / 273.9 MB, free: 388 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002061/0.008039, allocations: 343.9 kB / 274.3 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.686e-05/0.008086, allocations: 32.36 kB / 274.3 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000662/0.008748, allocations: 464.7 kB / 274.8 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.00876, allocations: 4.141 kB / 274.8 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.785e-05/0.008788, allocations: 20.11 kB / 274.8 MB, free: 15.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.198e-06/0.008797, allocations: 8 kB / 274.8 MB, free: 15.42 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004571/0.009254, allocations: 231.7 kB / 275 MB, free: 15.19 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001027/0.01028, allocations: 0.9601 MB / 276 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006269/0.01091, allocations: 339.5 kB / 276.3 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002164/0.01112, allocations: 146.8 kB / 276.5 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.671e-05/0.01116, allocations: 8 kB / 276.5 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.71e-05/0.01119, allocations: 57.25 kB / 276.5 MB, free: 13.56 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.613e-06/0.01119, allocations: 4 kB / 276.5 MB, free: 13.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.008668/0.01986, allocations: 2.673 MB / 279.2 MB, free: 10.88 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.901e-05/0.01993, allocations: 145 kB / 279.3 MB, free: 10.7 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002032/0.02013, allocations: 300.2 kB / 279.6 MB, free: 10.39 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.735e-05/0.02019, allocations: 41.7 kB / 279.7 MB, free: 10.35 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.552e-05/0.02027, allocations: 196.5 kB / 279.9 MB, free: 10.15 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001456/0.02042, allocations: 194.3 kB / 280.1 MB, free: 9.957 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002288/0.02065, allocations: 99.95 kB / 280.2 MB, free: 9.852 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.02078, allocations: 0.5195 MB / 280.7 MB, free: 9.32 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005255/0.0213, allocations: 317.2 kB / 281 MB, free: 9.012 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005825/0.02189, allocations: 432.5 kB / 281.4 MB, free: 8.551 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000985/0.02287, allocations: 0.6396 MB / 282 MB, free: 7.875 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.02287, allocations: 0 / 282 MB, free: 7.875 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001108/0.02398, allocations: 0.7865 MB / 282.8 MB, free: 7.078 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.2e-05/0.02399, allocations: 8 kB / 282.8 MB, free: 7.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.024, allocations: 4 kB / 282.8 MB, free: 7.066 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.02401, allocations: 4 kB / 282.8 MB, free: 7.062 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000566/0.02458, allocations: 163.7 kB / 283 MB, free: 6.902 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.074e-06/0.02458, allocations: 4 kB / 283 MB, free: 6.898 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003501/0.02493, allocations: 79.8 kB / 283.1 MB, free: 6.82 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.131e-05/0.02498, allocations: 20 kB / 283.1 MB, free: 6.801 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.0001566/0.02513, allocations: 204.3 kB / 283.3 MB, free: 6.59 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002186/0.02535, allocations: 161.3 kB / 283.5 MB, free: 6.426 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.018e-05/0.02542, allocations: 67.61 kB / 283.5 MB, free: 6.359 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.02543, allocations: 8 kB / 283.5 MB, free: 6.352 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.02543, allocations: 4 kB / 283.5 MB, free: 6.348 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.02544, allocations: 3.984 kB / 283.5 MB, free: 6.344 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001779/0.02722, allocations: 1.527 MB / 285.1 MB, free: 4.602 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.02722, allocations: 11.94 kB / 285.1 MB, free: 4.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003368/0.02756, allocations: 167.8 kB / 285.2 MB, free: 4.426 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.729e-06/0.02757, allocations: 16 kB / 285.3 MB, free: 4.41 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.213e-05/0.0276, allocations: 24 kB / 285.3 MB, free: 4.387 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-05/0.02761, allocations: 20.33 kB / 285.3 MB, free: 4.367 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.293e-06/0.02762, allocations: 23.88 kB / 285.3 MB, free: 4.344 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009962/0.02861, allocations: 1.229 MB / 286.6 MB, free: 2.91 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001313/0.02875, allocations: 103.6 kB / 286.7 MB, free: 2.809 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.959e-05/0.02879, allocations: 24 kB / 286.7 MB, free: 2.785 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002569/0.02904, allocations: 63.97 kB / 286.7 MB, free: 2.723 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001284/0.02917, allocations: 87.64 kB / 286.8 MB, free: 2.637 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.88e-05/0.0292, allocations: 31.94 kB / 286.9 MB, free: 2.605 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.807e-05/0.0293, allocations: 201.1 kB / 287.1 MB, free: 2.41 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.0293, allocations: 0 / 287.1 MB, free: 2.41 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003735/0.02967, allocations: 127.9 kB / 287.2 MB, free: 2.285 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.0001136/0.02978, allocations: 138.9 kB / 287.3 MB, free: 2.141 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008288/0.03061, allocations: 0.5819 MB / 287.9 MB, free: 1.555 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.03062, allocations: 0 / 287.9 MB, free: 1.555 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002361/0.03085, allocations: 170 kB / 288.1 MB, free: 1.387 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006442/0.0315, allocations: 166.7 kB / 288.2 MB, free: 1.23 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001636/0.03313, allocations: 1.18 MB / 289.4 MB, free: 15.83 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.317e-05/0.03323, allocations: 138.7 kB / 289.5 MB, free: 15.68 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002446/0.03347, allocations: 91.2 kB / 289.6 MB, free: 15.59 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001956/0.03367, allocations: 44.48 kB / 289.7 MB, free: 15.55 MB / 282.7 MB Notification: Performance of SimCode: time 7.21e-07/0.03367, allocations: 0 / 289.7 MB, free: 15.55 MB / 282.7 MB Notification: Performance of Templates: time 0.00941/0.04308, allocations: 9.049 MB / 298.7 MB, free: 6.57 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.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: 3.0348072783090174]