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.001919/0.001919, allocations: 109.1 kB / 21.18 MB, free: 0.7656 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.002477/0.002477, allocations: 213.1 kB / 24.5 MB, free: 4.148 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.594/1.594, allocations: 230.5 MB / 258.1 MB, free: 8.008 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.001965/0.001965, allocations: 63.89 kB / 379 MB, free: 2.523 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3026/0.3046, allocations: 53.4 MB / 432.4 MB, free: 6.758 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.004146/0.3087, allocations: 2.191 MB / 434.6 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001605/0.3103, allocations: 0.6899 MB / 435.3 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001535/0.3105, allocations: 7.938 kB / 435.3 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003603/0.3109, allocations: 43.7 kB / 435.3 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001812/0.311, allocations: 55.55 kB / 435.4 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004293/0.3115, allocations: 119.8 kB / 435.5 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005566/0.312, allocations: 351.1 kB / 435.9 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002221/0.3122, allocations: 52.45 kB / 435.9 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003895/0.3126, allocations: 147.6 kB / 436.1 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000287/0.3129, allocations: 167.3 kB / 436.2 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.669e-05/0.313, allocations: 28 kB / 436.2 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.677e-05/0.313, allocations: 32 kB / 436.3 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001234/0.3132, allocations: 79.8 kB / 436.4 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001488/0.3133, allocations: 131.4 kB / 436.5 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004549/0.3138, allocations: 284.2 kB / 436.8 MB, free: 2.395 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3138, allocations: 0 / 436.8 MB, free: 2.395 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3138, allocations: 0 / 436.8 MB, free: 2.395 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.558e-06/0.3138, allocations: 0 / 436.8 MB, free: 2.395 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.001299/0.3151, allocations: 0.5165 MB / 437.3 MB, free: 1.848 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.3151, allocations: 8.031 kB / 437.3 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.692e-05/0.3152, allocations: 32.8 kB / 437.3 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004455/0.3157, allocations: 182.3 kB / 437.5 MB, free: 1.609 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003536/0.316, allocations: 351.8 kB / 437.8 MB, free: 1.199 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.183e-05/0.3161, allocations: 31.88 kB / 437.9 MB, free: 1.168 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008719/0.3169, allocations: 366.5 kB / 438.2 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.174e-05/0.317, allocations: 3.953 kB / 438.2 MB, free: 0.793 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.534e-05/0.317, allocations: 12 kB / 438.2 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.317, allocations: 4 kB / 438.2 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00133/0.3183, allocations: 497.6 kB / 438.7 MB, free: 296 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001897/0.3202, allocations: 0.9576 MB / 439.7 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001233/0.3215, allocations: 314.2 kB / 440 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004902/0.322, allocations: 165.2 kB / 440.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.999e-05/0.322, allocations: 4.234 kB / 440.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.97e-05/0.322, allocations: 38.73 kB / 440.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.763e-06/0.322, allocations: 4 kB / 440.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.02688/0.3489, allocations: 5.644 MB / 445.8 MB, free: 9.043 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.556e-05/0.349, allocations: 55.84 kB / 445.9 MB, free: 8.977 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000279/0.3493, allocations: 203.2 kB / 446.1 MB, free: 8.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.622e-05/0.3493, allocations: 33.7 kB / 446.1 MB, free: 8.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.3494, allocations: 157 kB / 446.3 MB, free: 8.574 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001703/0.3496, allocations: 186.4 kB / 446.5 MB, free: 8.391 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002151/0.3498, allocations: 90.31 kB / 446.6 MB, free: 8.297 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.35, allocations: 338.8 kB / 446.9 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001325/0.3513, allocations: 472.9 kB / 447.4 MB, free: 7.492 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001349/0.3527, allocations: 0.5186 MB / 447.9 MB, free: 6.965 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002325/0.355, allocations: 0.7984 MB / 448.7 MB, free: 6.152 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.355, allocations: 0 / 448.7 MB, free: 6.152 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002739/0.3577, allocations: 0.9892 MB / 449.7 MB, free: 5.156 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/0.3578, allocations: 7.938 kB / 449.7 MB, free: 5.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.3578, allocations: 4 kB / 449.7 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.309e-05/0.3578, allocations: 4 kB / 449.7 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009887/0.3588, allocations: 171.7 kB / 449.8 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.3588, allocations: 4.031 kB / 449.8 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006766/0.3595, allocations: 83.89 kB / 449.9 MB, free: 4.887 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.4e-05/0.3595, allocations: 16 kB / 449.9 MB, free: 4.871 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.0002511/0.3598, allocations: 161.7 kB / 450.1 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.224e-05/0.3599, allocations: 31.75 kB / 450.1 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001339/0.36, allocations: 55.3 kB / 450.2 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.36, allocations: 8 kB / 450.2 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.36, allocations: 0 / 450.2 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.36, allocations: 0 / 450.2 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004306/0.3643, allocations: 1.844 MB / 452 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.086e-05/0.3643, allocations: 8 kB / 452 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006697/0.365, allocations: 148.5 kB / 452.2 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.116e-05/0.365, allocations: 19.92 kB / 452.2 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.866e-05/0.3651, allocations: 23.94 kB / 452.2 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.331e-05/0.3651, allocations: 11.94 kB / 452.2 MB, free: 2.402 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.339e-05/0.3651, allocations: 15.94 kB / 452.3 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002874/0.368, allocations: 1.224 MB / 453.5 MB, free: 1.031 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001979/0.3682, allocations: 71.78 kB / 453.6 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.645e-05/0.3682, allocations: 16 kB / 453.6 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005237/0.3688, allocations: 75.91 kB / 453.6 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002082/0.369, allocations: 87.66 kB / 453.7 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.44e-05/0.369, allocations: 24 kB / 453.8 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001965/0.3692, allocations: 159.5 kB / 453.9 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3692, allocations: 0 / 453.9 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005286/0.3697, allocations: 92 kB / 454 MB, free: 0.5156 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.0001855/0.3699, allocations: 123.1 kB / 454.1 MB, free: 396 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002295/0.3722, allocations: 0.7864 MB / 454.9 MB, free: 15.6 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.167e-06/0.3722, allocations: 7.938 kB / 454.9 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009572/0.3732, allocations: 317.7 kB / 455.2 MB, free: 15.28 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006305/0.3738, allocations: 59.34 kB / 455.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002313/0.3761, allocations: 1.058 MB / 456.3 MB, free: 14.03 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004368/0.3766, allocations: 0.7762 MB / 457.1 MB, free: 13.22 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002671/0.3768, allocations: 35.42 kB / 457.1 MB, free: 13.19 MB / 366.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3768, allocations: 4 kB / 457.2 MB, free: 13.18 MB / 366.1 MB Notification: Performance of Templates: time 0.01356/0.3904, allocations: 5.604 MB / 462.8 MB, free: 7.605 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/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: 8.165702381869778]