Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.001464/0.001464, allocations: 116.8 kB / 19.17 MB, free: 3.895 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.001638/0.001638, allocations: 214.6 kB / 22.13 MB, free: 0.9414 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.453/1.453, allocations: 230.4 MB / 255.4 MB, free: 15.02 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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [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.001834/0.001834, allocations: 71.83 kB / 374.7 MB, free: 9.777 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09683/0.09866, allocations: 53.32 MB / 428 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003493/0.1022, allocations: 2.162 MB / 430.2 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001197/0.1033, allocations: 0.686 MB / 430.9 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.876e-05/0.1034, allocations: 4 kB / 430.9 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002627/0.1037, allocations: 47.62 kB / 430.9 MB, free: 1.445 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001354/0.1038, allocations: 47.62 kB / 431 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003568/0.1042, allocations: 131.7 kB / 431.1 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003843/0.1046, allocations: 335.2 kB / 431.4 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000156/0.1047, allocations: 56.36 kB / 431.5 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002639/0.105, allocations: 151.5 kB / 431.6 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000237/0.1052, allocations: 155.4 kB / 431.8 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.912e-05/0.1053, allocations: 31.94 kB / 431.8 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.847e-05/0.1053, allocations: 32 kB / 431.9 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001168/0.1055, allocations: 87.72 kB / 431.9 MB, free: 448 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001211/0.1056, allocations: 119.4 kB / 432.1 MB, free: 328 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000342/0.1059, allocations: 282.8 kB / 432.3 MB, free: 44 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.1059, allocations: 0 / 432.3 MB, free: 44 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.1059, allocations: 7.938 kB / 432.3 MB, free: 36 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.1059, allocations: 4 kB / 432.3 MB, free: 32 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.1849/0.2908, allocations: 0.5726 MB / 432.9 MB, free: 11.37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.2908, allocations: 10.34 kB / 432.9 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.313e-05/0.2909, allocations: 32.27 kB / 433 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000328/0.2912, allocations: 254.9 kB / 433.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001788/0.2914, allocations: 137 kB / 433.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.537e-05/0.2915, allocations: 23.59 kB / 433.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000822/0.2923, allocations: 367 kB / 433.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.2923, allocations: 8.141 kB / 433.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.974e-05/0.2923, allocations: 11.03 kB / 433.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.2923, allocations: 4.594 kB / 433.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001251/0.2936, allocations: 0.4905 MB / 434.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001409/0.295, allocations: 1.001 MB / 435.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.2961, allocations: 322 kB / 435.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004651/0.2966, allocations: 161.9 kB / 435.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.476e-05/0.2966, allocations: 2.297 kB / 435.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.45e-05/0.2967, allocations: 38.55 kB / 435.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.623e-06/0.2967, allocations: 0 / 435.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.02738/0.324, allocations: 5.806 MB / 441.6 MB, free: 9.047 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.404e-05/0.3241, allocations: 56.72 kB / 441.6 MB, free: 8.984 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002251/0.3243, allocations: 197.5 kB / 441.8 MB, free: 8.855 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.959e-05/0.3244, allocations: 36.89 kB / 441.8 MB, free: 8.816 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.064e-05/0.3244, allocations: 156.1 kB / 442 MB, free: 8.676 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001222/0.3245, allocations: 183 kB / 442.2 MB, free: 8.535 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002078/0.3248, allocations: 92.7 kB / 442.3 MB, free: 8.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.239e-05/0.3248, allocations: 338 kB / 442.6 MB, free: 8.156 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001255/0.3261, allocations: 465.2 kB / 443 MB, free: 8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001269/0.3273, allocations: 0.5186 MB / 443.6 MB, free: 7.785 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002268/0.3296, allocations: 0.8082 MB / 444.4 MB, free: 7.473 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3296, allocations: 0 / 444.4 MB, free: 7.473 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002697/0.3323, allocations: 0.9858 MB / 445.4 MB, free: 7.113 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.3323, allocations: 6.172 kB / 445.4 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.537e-06/0.3323, allocations: 1.031 kB / 445.4 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.451e-05/0.3324, allocations: 8.594 kB / 445.4 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009745/0.3333, allocations: 165.9 kB / 445.5 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.3334, allocations: 10.31 kB / 445.5 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006984/0.334, allocations: 85.39 kB / 445.6 MB, free: 7.094 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.312e-05/0.3341, allocations: 16.66 kB / 445.6 MB, free: 7.09 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0002047/0.3343, allocations: 160.6 kB / 445.8 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.085e-05/0.3344, allocations: 28.59 kB / 445.8 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001203/0.3345, allocations: 53.23 kB / 445.9 MB, free: 6.887 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.3345, allocations: 9.875 kB / 445.9 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/0.3345, allocations: 0 / 445.9 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.3345, allocations: 3.047 kB / 445.9 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003955/0.3385, allocations: 1.873 MB / 447.8 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/0.3385, allocations: 8.344 kB / 447.8 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006545/0.3392, allocations: 146 kB / 447.9 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.466e-05/0.3392, allocations: 14.42 kB / 447.9 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.334e-05/0.3392, allocations: 20.38 kB / 448 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.394e-05/0.3392, allocations: 17 kB / 448 MB, free: 5.855 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-05/0.3392, allocations: 11.05 kB / 448 MB, free: 5.855 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002593/0.3418, allocations: 1.23 MB / 449.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001447/0.342, allocations: 144.6 kB / 449.4 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.987e-05/0.342, allocations: 26.7 kB / 449.4 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005038/0.3425, allocations: 68.19 kB / 449.4 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001784/0.3427, allocations: 83.92 kB / 449.5 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.692e-05/0.3428, allocations: 23.25 kB / 449.6 MB, free: 4.961 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001384/0.3429, allocations: 149.3 kB / 449.7 MB, free: 4.863 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3429, allocations: 4 kB / 449.7 MB, free: 4.859 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004949/0.3434, allocations: 99.44 kB / 449.8 MB, free: 4.844 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.0001319/0.3435, allocations: 133.3 kB / 449.9 MB, free: 4.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002257/0.3458, allocations: 0.7841 MB / 450.7 MB, free: 4.492 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.3458, allocations: 2.219 kB / 450.7 MB, free: 4.492 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009036/0.3467, allocations: 319.8 kB / 451 MB, free: 4.367 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005928/0.3473, allocations: 58.02 kB / 451.1 MB, free: 4.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001901/0.3492, allocations: 1.049 MB / 452.1 MB, free: 3.453 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001976/0.3494, allocations: 0.7808 MB / 452.9 MB, free: 2.719 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002688/0.3497, allocations: 38.69 kB / 453 MB, free: 2.707 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3497, allocations: 0 / 453 MB, free: 2.707 MB / 350.1 MB Notification: Performance of Templates: time 0.008047/0.3577, allocations: 5.627 MB / 458.6 MB, free: 15.77 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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: 7.247323896037415]