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.001441/0.001441, allocations: 84.66 kB / 20.95 MB, free: 3.449 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.001501/0.001501, allocations: 149.1 kB / 24.26 MB, free: 156 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.517/1.517, allocations: 173.4 MB / 200.8 MB, free: 9.293 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.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 2.344e-06/2.344e-06, allocations: 0 / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.518e-05/3.752e-05, allocations: 6.25 kB / 267.3 MB, free: 6.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004753/0.004791, allocations: 2.295 MB / 269.6 MB, free: 4.414 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001774/0.006565, allocations: 0.7947 MB / 270.4 MB, free: 3.613 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001559/0.00672, allocations: 15.94 kB / 270.4 MB, free: 3.598 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003014/0.007022, allocations: 51.56 kB / 270.4 MB, free: 3.547 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002618/0.007284, allocations: 75.36 kB / 270.5 MB, free: 3.473 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005711/0.007855, allocations: 207.4 kB / 270.7 MB, free: 3.27 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005184/0.008373, allocations: 399.4 kB / 271.1 MB, free: 2.879 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001993/0.008572, allocations: 75.84 kB / 271.2 MB, free: 2.805 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003519/0.008924, allocations: 239.4 kB / 271.4 MB, free: 2.57 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002498/0.009174, allocations: 139.6 kB / 271.6 MB, free: 2.434 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.721e-05/0.009251, allocations: 36 kB / 271.6 MB, free: 2.398 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.899e-05/0.00931, allocations: 36 kB / 271.6 MB, free: 2.363 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001485/0.009459, allocations: 115.6 kB / 271.7 MB, free: 2.25 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001423/0.009601, allocations: 111.6 kB / 271.8 MB, free: 2.141 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000493/0.01009, allocations: 386.8 kB / 272.2 MB, free: 1.762 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.0101, allocations: 0 / 272.2 MB, free: 1.762 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.0101, allocations: 0 / 272.2 MB, free: 1.762 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.01011, allocations: 4 kB / 272.2 MB, free: 1.758 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.00138/0.01149, allocations: 0.6102 MB / 272.8 MB, free: 1.117 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.01152, allocations: 8.031 kB / 272.8 MB, free: 1.109 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001538/0.01168, allocations: 80.7 kB / 272.9 MB, free: 1.031 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004648/0.01214, allocations: 249.1 kB / 273.2 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003726/0.01251, allocations: 351.9 kB / 273.5 MB, free: 356 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.017e-05/0.01258, allocations: 28.38 kB / 273.5 MB, free: 328 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001349/0.01393, allocations: 0.5627 MB / 274.1 MB, free: 15.73 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.01395, allocations: 4.141 kB / 274.1 MB, free: 15.72 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.478e-05/0.014, allocations: 20.12 kB / 274.1 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.219e-05/0.01401, allocations: 8 kB / 274.1 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001527/0.01554, allocations: 0.5151 MB / 274.7 MB, free: 15.18 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001591/0.01713, allocations: 0.8642 MB / 275.5 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001586/0.01871, allocations: 466.6 kB / 276 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007216/0.01943, allocations: 239.3 kB / 276.2 MB, free: 13.53 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.195e-05/0.01949, allocations: 15.98 kB / 276.2 MB, free: 13.51 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/0.01952, allocations: 46.5 kB / 276.3 MB, free: 13.46 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.553e-06/0.01953, allocations: 0 / 276.3 MB, free: 13.46 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.03952/0.05904, allocations: 5.816 MB / 282.1 MB, free: 7.629 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001489/0.05919, allocations: 149 kB / 282.2 MB, free: 7.453 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003419/0.05953, allocations: 265.8 kB / 282.5 MB, free: 7.188 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.425e-05/0.05962, allocations: 41.64 kB / 282.5 MB, free: 7.141 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.05975, allocations: 149.7 kB / 282.7 MB, free: 6.988 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002343/0.05998, allocations: 194.3 kB / 282.9 MB, free: 6.797 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003158/0.0603, allocations: 94.3 kB / 283 MB, free: 6.699 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.00019/0.06049, allocations: 346.7 kB / 283.3 MB, free: 6.352 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00171/0.0622, allocations: 0.6103 MB / 283.9 MB, free: 5.742 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001828/0.06402, allocations: 0.6937 MB / 284.6 MB, free: 5.02 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003208/0.06723, allocations: 1.118 MB / 285.7 MB, free: 3.875 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.06724, allocations: 0 / 285.7 MB, free: 3.875 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.003814/0.07105, allocations: 1.317 MB / 287 MB, free: 2.547 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.07107, allocations: 4 kB / 287 MB, free: 2.543 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.07108, allocations: 8.219 kB / 287 MB, free: 2.535 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.032e-05/0.0711, allocations: 4 kB / 287.1 MB, free: 2.531 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001288/0.07239, allocations: 175.7 kB / 287.2 MB, free: 2.359 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.343e-05/0.0724, allocations: 4 kB / 287.2 MB, free: 2.355 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009389/0.07334, allocations: 95.88 kB / 287.3 MB, free: 2.262 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.805e-05/0.07342, allocations: 16 kB / 287.3 MB, free: 2.246 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.0003627/0.07378, allocations: 189.6 kB / 287.5 MB, free: 2.051 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004259/0.07421, allocations: 189.3 kB / 287.7 MB, free: 1.859 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001957/0.0744, allocations: 67.61 kB / 287.8 MB, free: 1.789 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/0.07441, allocations: 8 kB / 287.8 MB, free: 1.781 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.07442, allocations: 0 / 287.8 MB, free: 1.781 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.756e-06/0.07443, allocations: 4.219 kB / 287.8 MB, free: 1.777 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1268/0.2012, allocations: 1.938 MB / 289.7 MB, free: 32.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.262e-05/0.2012, allocations: 11.34 kB / 289.7 MB, free: 32.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007889/0.202, allocations: 184.5 kB / 289.9 MB, free: 32.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.574e-05/0.202, allocations: 17.75 kB / 289.9 MB, free: 32.75 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.643e-05/0.2021, allocations: 25.81 kB / 290 MB, free: 32.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.602e-05/0.2021, allocations: 19.56 kB / 290 MB, free: 32.75 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.06e-05/0.2021, allocations: 18.94 kB / 290 MB, free: 32.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00319/0.2053, allocations: 1.582 MB / 291.6 MB, free: 32.17 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002365/0.2055, allocations: 106.6 kB / 291.7 MB, free: 32.17 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.603e-05/0.2056, allocations: 31.52 kB / 291.7 MB, free: 32.17 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006246/0.2062, allocations: 77.48 kB / 291.8 MB, free: 32.17 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002109/0.2064, allocations: 101 kB / 291.9 MB, free: 32.17 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.299e-05/0.2065, allocations: 32.86 kB / 291.9 MB, free: 32.17 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001739/0.2067, allocations: 193 kB / 292.1 MB, free: 32.09 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2067, allocations: 5.031 kB / 292.1 MB, free: 32.09 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006437/0.2073, allocations: 115.7 kB / 292.2 MB, free: 32.09 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.0001636/0.2075, allocations: 135.6 kB / 292.4 MB, free: 31.98 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002659/0.2101, allocations: 0.9956 MB / 293.4 MB, free: 31.66 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.2101, allocations: 2.219 kB / 293.4 MB, free: 31.66 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000994/0.2111, allocations: 345.8 kB / 293.7 MB, free: 31.57 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009664/0.2121, allocations: 167.8 kB / 293.9 MB, free: 31.53 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002119/0.2142, allocations: 1.194 MB / 295 MB, free: 30.68 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002215/0.2144, allocations: 226.8 kB / 295.3 MB, free: 30.59 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004732/0.2149, allocations: 96.89 kB / 295.4 MB, free: 30.56 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002995/0.2152, allocations: 42.27 kB / 295.4 MB, free: 30.55 MB / 266.7 MB Notification: Performance of SimCode: time 7.92e-07/0.2152, allocations: 1.469 kB / 295.4 MB, free: 30.55 MB / 266.7 MB Notification: Performance of Templates: time 0.01271/0.2279, allocations: 8.989 MB / 304.4 MB, free: 26.34 MB / 266.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.826311591081321]