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.001299/0.001299, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.001301/0.001301, allocations: 148.2 kB / 24.81 MB, free: 9.27 MB / 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.048/1.048, allocations: 173.3 MB / 201.4 MB, free: 9.227 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 1.653e-06/1.653e-06, allocations: 0 / 268.4 MB, free: 6.242 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.662e-05/1.828e-05, allocations: 2.312 kB / 268.4 MB, free: 6.238 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002709/0.002727, allocations: 2.37 MB / 270.7 MB, free: 3.848 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001239/0.003967, allocations: 0.8181 MB / 271.6 MB, free: 3.023 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001421/0.004109, allocations: 11.88 kB / 271.6 MB, free: 3.012 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002727/0.004381, allocations: 55.52 kB / 271.6 MB, free: 2.957 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001723/0.004554, allocations: 67.48 kB / 271.7 MB, free: 2.891 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003464/0.0049, allocations: 207.3 kB / 271.9 MB, free: 2.688 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002872/0.005187, allocations: 403.4 kB / 272.3 MB, free: 2.293 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001512/0.005339, allocations: 71.8 kB / 272.4 MB, free: 2.223 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002657/0.005604, allocations: 235.5 kB / 272.6 MB, free: 1.992 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001911/0.005795, allocations: 143.6 kB / 272.7 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.335e-05/0.005849, allocations: 36 kB / 272.8 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.661e-05/0.005895, allocations: 36 kB / 272.8 MB, free: 1.781 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.994e-05/0.005995, allocations: 111.6 kB / 272.9 MB, free: 1.672 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.786e-05/0.006093, allocations: 111.6 kB / 273 MB, free: 1.562 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003082/0.006401, allocations: 275 kB / 273.3 MB, free: 1.293 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.773e-06/0.006403, allocations: 0 / 273.3 MB, free: 1.293 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.006404, allocations: 4 kB / 273.3 MB, free: 1.289 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.467e-06/0.006408, allocations: 0 / 273.3 MB, free: 1.289 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.0008659/0.007274, allocations: 0.6985 MB / 274 MB, free: 0.5547 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.007311, allocations: 12.03 kB / 274 MB, free: 0.543 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.659e-05/0.007407, allocations: 80.64 kB / 274.1 MB, free: 476 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002814/0.007689, allocations: 244 kB / 274.3 MB, free: 200 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002166/0.007905, allocations: 351.8 kB / 274.7 MB, free: 15.79 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.783e-05/0.007953, allocations: 28.38 kB / 274.7 MB, free: 15.76 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005808/0.008534, allocations: 432.7 kB / 275.1 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/0.008549, allocations: 4.141 kB / 275.1 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.924e-05/0.008578, allocations: 20.12 kB / 275.1 MB, free: 15.27 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.008589, allocations: 8 kB / 275.1 MB, free: 15.26 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00035/0.008939, allocations: 195.7 kB / 275.3 MB, free: 15.07 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009721/0.009911, allocations: 0.9099 MB / 276.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005647/0.01048, allocations: 320.7 kB / 276.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001633/0.01064, allocations: 122.8 kB / 276.7 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.795e-05/0.01068, allocations: 15.92 kB / 276.7 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.01071, allocations: 45.39 kB / 276.7 MB, free: 13.54 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.844e-06/0.01071, allocations: 0 / 276.7 MB, free: 13.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.008104/0.01881, allocations: 2.412 MB / 279.2 MB, free: 11.12 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.458e-05/0.01889, allocations: 156.9 kB / 279.3 MB, free: 10.94 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001975/0.01909, allocations: 304 kB / 279.6 MB, free: 10.62 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.469e-05/0.01914, allocations: 33.7 kB / 279.6 MB, free: 10.59 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.684e-05/0.01923, allocations: 196.5 kB / 279.8 MB, free: 10.39 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001551/0.01938, allocations: 198.3 kB / 280 MB, free: 10.19 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002208/0.0196, allocations: 107.9 kB / 280.1 MB, free: 10.08 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.01974, allocations: 0.5118 MB / 280.6 MB, free: 9.555 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003589/0.0201, allocations: 245.2 kB / 280.9 MB, free: 9.316 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000429/0.02053, allocations: 368 kB / 281.2 MB, free: 8.918 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007185/0.02125, allocations: 0.538 MB / 281.8 MB, free: 8.344 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.02125, allocations: 7.938 kB / 281.8 MB, free: 8.336 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001025/0.02228, allocations: 0.6574 MB / 282.4 MB, free: 7.668 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.02229, allocations: 4 kB / 282.4 MB, free: 7.664 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.0223, allocations: 7.984 kB / 282.5 MB, free: 7.656 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.02232, allocations: 4 kB / 282.5 MB, free: 7.652 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007155/0.02303, allocations: 160 kB / 282.6 MB, free: 7.496 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.02304, allocations: 8 kB / 282.6 MB, free: 7.488 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004633/0.0235, allocations: 83.8 kB / 282.7 MB, free: 7.406 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.466e-05/0.02356, allocations: 12 kB / 282.7 MB, free: 7.395 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.0001945/0.02375, allocations: 200.4 kB / 282.9 MB, free: 7.188 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002827/0.02403, allocations: 145.7 kB / 283.1 MB, free: 7.039 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001049/0.02414, allocations: 67.61 kB / 283.1 MB, free: 6.973 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.02415, allocations: 8 kB / 283.1 MB, free: 6.965 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.02415, allocations: 7.984 kB / 283.1 MB, free: 6.957 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.02416, allocations: 0 / 283.1 MB, free: 6.957 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002153/0.02631, allocations: 1.464 MB / 284.6 MB, free: 5.285 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.337e-06/0.02632, allocations: 13 kB / 284.6 MB, free: 5.273 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004508/0.02677, allocations: 171.7 kB / 284.8 MB, free: 5.105 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.435e-05/0.02678, allocations: 15.98 kB / 284.8 MB, free: 5.09 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.966e-05/0.02682, allocations: 28 kB / 284.8 MB, free: 5.062 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.36e-05/0.02684, allocations: 19.94 kB / 284.8 MB, free: 5.043 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.034e-05/0.02685, allocations: 16.02 kB / 284.9 MB, free: 5.027 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009025/0.02775, allocations: 1.058 MB / 285.9 MB, free: 3.758 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001633/0.02791, allocations: 103.6 kB / 286 MB, free: 3.656 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.602e-05/0.02797, allocations: 27.98 kB / 286 MB, free: 3.629 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003662/0.02834, allocations: 55.95 kB / 286.1 MB, free: 3.574 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001443/0.02848, allocations: 95.62 kB / 286.2 MB, free: 3.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.588e-05/0.02852, allocations: 27.94 kB / 286.2 MB, free: 3.453 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001025/0.02862, allocations: 193.1 kB / 286.4 MB, free: 3.266 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02862, allocations: 8.031 kB / 286.4 MB, free: 3.258 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005157/0.02913, allocations: 120 kB / 286.5 MB, free: 3.141 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.000137/0.02927, allocations: 138.9 kB / 286.7 MB, free: 2.996 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007306/0.03, allocations: 0.4963 MB / 287.2 MB, free: 2.5 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.03, allocations: 4.062 kB / 287.2 MB, free: 2.496 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000232/0.03024, allocations: 161.9 kB / 287.3 MB, free: 2.336 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007799/0.03102, allocations: 164 kB / 287.5 MB, free: 2.18 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001696/0.03271, allocations: 1.174 MB / 288.7 MB, free: 0.7852 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001138/0.03283, allocations: 130.8 kB / 288.8 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004899/0.03332, allocations: 83.22 kB / 288.9 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003829/0.0337, allocations: 142.2 kB / 289 MB, free: 428 kB / 266.7 MB Notification: Performance of SimCode: time 1.302e-06/0.0337, allocations: 0 / 289 MB, free: 428 kB / 266.7 MB Notification: Performance of Templates: time 0.01297/0.04667, allocations: 9.669 MB / 298.7 MB, free: 6.812 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: 2.8638351019471884]