Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00176/0.00176, allocations: 114.5 kB / 21.17 MB, free: 0.6172 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002188/0.002188, allocations: 206.2 kB / 24.47 MB, free: 4.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.531/1.531, allocations: 230.4 MB / 258.1 MB, free: 8.148 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002552/0.002552, allocations: 67.83 kB / 378.7 MB, free: 2.918 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2641, allocations: 53.32 MB / 432 MB, free: 7.391 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003774/0.2679, allocations: 2.386 MB / 434.4 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00152/0.2694, allocations: 0.8456 MB / 435.3 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001334/0.2695, allocations: 11.94 kB / 435.3 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002679/0.2698, allocations: 51.58 kB / 435.3 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001869/0.27, allocations: 63.48 kB / 435.4 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004844/0.2705, allocations: 167.7 kB / 435.6 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004433/0.2709, allocations: 387.5 kB / 435.9 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000182/0.2711, allocations: 75.84 kB / 436 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003157/0.2714, allocations: 175.4 kB / 436.2 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002611/0.2717, allocations: 179.3 kB / 436.4 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.548e-05/0.2717, allocations: 36 kB / 436.4 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.964e-05/0.2718, allocations: 32 kB / 436.4 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.2719, allocations: 95.72 kB / 436.5 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000149/0.272, allocations: 147.2 kB / 436.7 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004034/0.2724, allocations: 336.5 kB / 437 MB, free: 2.418 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2724, allocations: 0 / 437 MB, free: 2.418 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2724, allocations: 0 / 437 MB, free: 2.418 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.2725, allocations: 4 kB / 437 MB, free: 2.414 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.001207/0.2737, allocations: 0.6198 MB / 437.6 MB, free: 1.746 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.2737, allocations: 19.97 kB / 437.6 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.119e-05/0.2738, allocations: 40.7 kB / 437.7 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004527/0.2742, allocations: 284.4 kB / 437.9 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002045/0.2744, allocations: 134.3 kB / 438.1 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.393e-05/0.2745, allocations: 32.36 kB / 438.1 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001207/0.2757, allocations: 0.5705 MB / 438.7 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/0.2757, allocations: 4 kB / 438.7 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.652e-05/0.2758, allocations: 12 kB / 438.7 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.2758, allocations: 8 kB / 438.7 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001379/0.2772, allocations: 0.5113 MB / 439.2 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001688/0.2788, allocations: 1.01 MB / 440.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001686/0.2805, allocations: 490.5 kB / 440.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006422/0.2812, allocations: 235.4 kB / 440.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.495e-05/0.2812, allocations: 4.156 kB / 440.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.588e-05/0.2813, allocations: 50.42 kB / 441 MB, free: 14.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.124e-06/0.2813, allocations: 4 kB / 441 MB, free: 14.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03907/0.3203, allocations: 5.717 MB / 446.7 MB, free: 8.422 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.3204, allocations: 148.9 kB / 446.9 MB, free: 8.246 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002198/0.3207, allocations: 200.2 kB / 447 MB, free: 8.039 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.505e-05/0.3207, allocations: 37.7 kB / 447.1 MB, free: 7.996 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.982e-05/0.3208, allocations: 145.7 kB / 447.2 MB, free: 7.848 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002032/0.321, allocations: 198.3 kB / 447.4 MB, free: 7.652 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002908/0.3213, allocations: 114.6 kB / 447.5 MB, free: 7.535 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.3215, allocations: 346.8 kB / 447.9 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001652/0.3231, allocations: 0.6149 MB / 448.5 MB, free: 6.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001773/0.3249, allocations: 0.7963 MB / 449.3 MB, free: 5.695 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003166/0.3281, allocations: 1.251 MB / 450.5 MB, free: 4.367 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3281, allocations: 0 / 450.5 MB, free: 4.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003641/0.3317, allocations: 1.406 MB / 451.9 MB, free: 2.953 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.3317, allocations: 8 kB / 451.9 MB, free: 2.945 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.3318, allocations: 4 kB / 451.9 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.203e-05/0.3318, allocations: 8 kB / 452 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001351/0.3331, allocations: 207.6 kB / 452.2 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.008e-05/0.3331, allocations: 19.92 kB / 452.2 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009454/0.3341, allocations: 107.8 kB / 452.3 MB, free: 2.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.395e-05/0.3342, allocations: 27.98 kB / 452.3 MB, free: 2.578 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.0002999/0.3345, allocations: 177.7 kB / 452.5 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003078/0.3348, allocations: 157.3 kB / 452.6 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001515/0.3349, allocations: 59.3 kB / 452.7 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.3349, allocations: 8 kB / 452.7 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-06/0.335, allocations: 4 kB / 452.7 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.335, allocations: 7.984 kB / 452.7 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004962/0.3399, allocations: 2.172 MB / 454.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.256e-05/0.3399, allocations: 15.94 kB / 454.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007601/0.3407, allocations: 175.8 kB / 455.1 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.538e-05/0.3407, allocations: 12 kB / 455.1 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.074e-05/0.3408, allocations: 28.42 kB / 455.1 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-05/0.3408, allocations: 23.94 kB / 455.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.251e-05/0.3408, allocations: 19.88 kB / 455.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003346/0.3441, allocations: 1.549 MB / 456.7 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002181/0.3444, allocations: 164.9 kB / 456.9 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.968e-05/0.3444, allocations: 35.98 kB / 456.9 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005915/0.345, allocations: 71.92 kB / 457 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002024/0.3452, allocations: 95.66 kB / 457.1 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.944e-05/0.3453, allocations: 28 kB / 457.1 MB, free: 13.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001455/0.3454, allocations: 145.2 kB / 457.2 MB, free: 13.29 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3454, allocations: 0 / 457.2 MB, free: 13.29 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006683/0.3461, allocations: 124 kB / 457.4 MB, free: 13.16 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.0001924/0.3463, allocations: 139.1 kB / 457.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002855/0.3491, allocations: 1.029 MB / 458.5 MB, free: 11.99 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.66e-06/0.3491, allocations: 4 kB / 458.5 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001043/0.3502, allocations: 334.4 kB / 458.9 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009003/0.3511, allocations: 133.1 kB / 459 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002512/0.3536, allocations: 1.175 MB / 460.2 MB, free: 10.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005461/0.3541, allocations: 0.8129 MB / 461 MB, free: 9.355 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000438/0.3546, allocations: 91.33 kB / 461.1 MB, free: 9.262 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000273/0.3549, allocations: 43.42 kB / 461.1 MB, free: 9.223 MB / 366.1 MB Notification: Performance of SimCode: time 7.22e-07/0.3549, allocations: 0 / 461.1 MB, free: 9.223 MB / 366.1 MB Notification: Performance of Templates: time 0.01461/0.3695, allocations: 8.7 MB / 469.8 MB, free: 0.5391 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 4.985688984859735]