Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001513/0.001513, allocations: 106.9 kB / 19.8 MB, free: 2.5 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.002393/0.002393, allocations: 221.3 kB / 23 MB, free: 5.574 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 230.2 MB / 256.2 MB, free: 8.527 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 67.89 kB / 376.4 MB, free: 3.637 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2782/0.2801, allocations: 53.33 MB / 429.8 MB, free: 7.562 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.00374/0.2839, allocations: 2.179 MB / 432 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001261/0.2851, allocations: 0.6861 MB / 432.6 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001109/0.2852, allocations: 7.938 kB / 432.6 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002881/0.2855, allocations: 39.7 kB / 432.7 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000155/0.2857, allocations: 59.56 kB / 432.7 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003511/0.286, allocations: 119.8 kB / 432.9 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004058/0.2864, allocations: 339.2 kB / 433.2 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001787/0.2866, allocations: 56.33 kB / 433.2 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002757/0.2869, allocations: 151.5 kB / 433.4 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002438/0.2871, allocations: 163.3 kB / 433.6 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.838e-05/0.2872, allocations: 28 kB / 433.6 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.251e-05/0.2872, allocations: 32 kB / 433.6 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001045/0.2873, allocations: 83.78 kB / 433.7 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001191/0.2874, allocations: 123.4 kB / 433.8 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003564/0.2878, allocations: 284.2 kB / 434.1 MB, free: 3.227 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.2878, allocations: 0 / 434.1 MB, free: 3.227 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2878, allocations: 0 / 434.1 MB, free: 3.227 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.143e-06/0.2878, allocations: 0 / 434.1 MB, free: 3.227 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001176/0.289, allocations: 0.5918 MB / 434.7 MB, free: 2.586 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.289, allocations: 8.031 kB / 434.7 MB, free: 2.578 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.946e-05/0.2891, allocations: 32.8 kB / 434.7 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003616/0.2895, allocations: 252.6 kB / 435 MB, free: 2.262 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001994/0.2897, allocations: 130.2 kB / 435.1 MB, free: 2.117 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.077e-05/0.2897, allocations: 31.88 kB / 435.1 MB, free: 2.086 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008522/0.2906, allocations: 367.5 kB / 435.5 MB, free: 1.715 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.358e-05/0.2906, allocations: 19.94 kB / 435.5 MB, free: 1.695 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.003e-05/0.2906, allocations: 4 kB / 435.5 MB, free: 1.691 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.577e-06/0.2906, allocations: 8 kB / 435.5 MB, free: 1.684 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001266/0.2919, allocations: 489.9 kB / 436 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001763/0.2937, allocations: 1.011 MB / 437 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001157/0.2948, allocations: 319.1 kB / 437.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004815/0.2953, allocations: 161.2 kB / 437.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.245e-05/0.2954, allocations: 4.234 kB / 437.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/0.2954, allocations: 34.8 kB / 437.5 MB, free: 15.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.423e-06/0.2954, allocations: 7.938 kB / 437.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.02647/0.3219, allocations: 5.794 MB / 443.3 MB, free: 9.699 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.924e-05/0.3219, allocations: 59.84 kB / 443.4 MB, free: 9.629 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002577/0.3222, allocations: 206.3 kB / 443.6 MB, free: 9.418 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7e-05/0.3222, allocations: 29.7 kB / 443.6 MB, free: 9.383 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.3224, allocations: 153 kB / 443.8 MB, free: 9.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001977/0.3226, allocations: 186.4 kB / 443.9 MB, free: 9.047 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002597/0.3228, allocations: 94.2 kB / 444 MB, free: 8.949 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.323, allocations: 330.8 kB / 444.4 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001297/0.3243, allocations: 468.8 kB / 444.8 MB, free: 8.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001319/0.3256, allocations: 0.5216 MB / 445.3 MB, free: 7.621 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002392/0.328, allocations: 0.8032 MB / 446.1 MB, free: 6.805 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.328, allocations: 0 / 446.1 MB, free: 6.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002737/0.3307, allocations: 0.9906 MB / 447.1 MB, free: 5.809 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.3308, allocations: 7.938 kB / 447.1 MB, free: 5.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.3308, allocations: 0 / 447.1 MB, free: 5.801 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.3308, allocations: 4 kB / 447.1 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001069/0.3318, allocations: 171.9 kB / 447.3 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.282e-05/0.3319, allocations: 7.984 kB / 447.3 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006544/0.3325, allocations: 91.88 kB / 447.4 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.457e-05/0.3326, allocations: 16 kB / 447.4 MB, free: 5.516 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.0002343/0.3328, allocations: 161.7 kB / 447.6 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.225e-05/0.3329, allocations: 31.75 kB / 447.6 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001109/0.333, allocations: 51.3 kB / 447.7 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.333, allocations: 4 kB / 447.7 MB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.333, allocations: 4 kB / 447.7 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.333, allocations: 3.984 kB / 447.7 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00429/0.3373, allocations: 1.867 MB / 449.5 MB, free: 3.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-05/0.3373, allocations: 8.188 kB / 449.5 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006426/0.338, allocations: 151.8 kB / 449.7 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.304e-05/0.338, allocations: 11.94 kB / 449.7 MB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.573e-05/0.338, allocations: 23.94 kB / 449.7 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.333e-05/0.3381, allocations: 15.94 kB / 449.7 MB, free: 3.012 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.987e-06/0.3381, allocations: 11.94 kB / 449.8 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00277/0.3409, allocations: 1.229 MB / 451 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001781/0.341, allocations: 144.9 kB / 451.1 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.202e-05/0.3411, allocations: 20 kB / 451.1 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005051/0.3416, allocations: 75.91 kB / 451.2 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001871/0.3418, allocations: 87.67 kB / 451.3 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.37e-05/0.3418, allocations: 24 kB / 451.3 MB, free: 1.277 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002031/0.342, allocations: 148.3 kB / 451.5 MB, free: 1.133 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.342, allocations: 0 / 451.5 MB, free: 1.133 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004888/0.3425, allocations: 96 kB / 451.6 MB, free: 1.039 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.0001846/0.3427, allocations: 123.1 kB / 451.7 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002272/0.345, allocations: 0.7854 MB / 452.5 MB, free: 128 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.345, allocations: 0 / 452.5 MB, free: 128 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009719/0.346, allocations: 324.9 kB / 452.8 MB, free: 15.81 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006001/0.3466, allocations: 60.17 kB / 452.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002219/0.3488, allocations: 1.024 MB / 453.9 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004642/0.3492, allocations: 0.784 MB / 454.7 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003923/0.3496, allocations: 83.19 kB / 454.7 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002095/0.3498, allocations: 31.44 kB / 454.8 MB, free: 13.67 MB / 366.1 MB Notification: Performance of SimCode: time 8.61e-07/0.3498, allocations: 0 / 454.8 MB, free: 13.67 MB / 366.1 MB Notification: Performance of Templates: time 0.01092/0.3608, allocations: 6.031 MB / 460.8 MB, free: 7.668 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 4.815494091250002]