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.0009934/0.0009934, allocations: 84.73 kB / 21.5 MB, free: 2.992 MB / 18.57 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.001057/0.001057, allocations: 166.3 kB / 24.91 MB, free: 8.77 MB / 18.57 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.055/1.055, allocations: 177 MB / 205.2 MB, free: 5.078 MB / 186.7 MB " [Timeout remaining time 179] 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 2.214e-06/2.214e-06, allocations: 0 / 273.4 MB, free: 1.082 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.382e-05/3.604e-05, allocations: 2.312 kB / 273.4 MB, free: 1.078 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.005071/0.005107, allocations: 2.196 MB / 275.6 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001823/0.00693, allocations: 0.6818 MB / 276.3 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001885/0.007119, allocations: 4 kB / 276.3 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003957/0.007514, allocations: 55.58 kB / 276.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002439/0.007758, allocations: 55.56 kB / 276.4 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005069/0.008265, allocations: 119.7 kB / 276.5 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004116/0.008677, allocations: 351.1 kB / 276.8 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001756/0.008852, allocations: 42.53 kB / 276.9 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003933/0.009246, allocations: 219.5 kB / 277.1 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001781/0.009424, allocations: 127.6 kB / 277.2 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.954e-05/0.009463, allocations: 32 kB / 277.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.187e-05/0.009495, allocations: 28 kB / 277.3 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.627e-05/0.009581, allocations: 95.7 kB / 277.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.299e-05/0.009654, allocations: 87.78 kB / 277.5 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003094/0.009964, allocations: 223.2 kB / 277.7 MB, free: 12.77 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.009968, allocations: 0 / 277.7 MB, free: 12.77 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.009969, allocations: 0 / 277.7 MB, free: 12.77 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.585e-06/0.009977, allocations: 0 / 277.7 MB, free: 12.77 MB / 266.7 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.0006839/0.01066, allocations: 483.7 kB / 278.2 MB, free: 12.27 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.01071, allocations: 15.92 kB / 278.2 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.228e-05/0.01078, allocations: 52.89 kB / 278.2 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002296/0.01101, allocations: 166 kB / 278.4 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001801/0.01119, allocations: 339.8 kB / 278.7 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.358e-05/0.01123, allocations: 24.38 kB / 278.7 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003115/0.01155, allocations: 258.5 kB / 279 MB, free: 11.33 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.01156, allocations: 3.938 kB / 279 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.01e-05/0.01158, allocations: 12 kB / 279 MB, free: 11.31 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.01159, allocations: 4 kB / 279 MB, free: 11.31 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002535/0.01184, allocations: 164.2 kB / 279.2 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009239/0.01277, allocations: 0.6239 MB / 279.8 MB, free: 10.49 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003091/0.01307, allocations: 204 kB / 280 MB, free: 10.28 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.134e-05/0.01316, allocations: 52.84 kB / 280 MB, free: 10.23 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.106e-05/0.01319, allocations: 4 kB / 280 MB, free: 10.22 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.427e-05/0.01321, allocations: 38.56 kB / 280.1 MB, free: 10.18 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 2.454e-06/0.01321, allocations: 0 / 280.1 MB, free: 10.18 MB / 266.7 MB Notification: Performance of matching and sorting (n=53): time 0.007012/0.02023, allocations: 3.339 MB / 283.4 MB, free: 6.785 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.322e-05/0.02026, allocations: 59.89 kB / 283.5 MB, free: 6.715 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001269/0.02039, allocations: 186.5 kB / 283.7 MB, free: 6.52 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.195e-05/0.02042, allocations: 33.7 kB / 283.7 MB, free: 6.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.85e-05/0.02048, allocations: 145 kB / 283.8 MB, free: 6.336 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001001/0.02058, allocations: 190.3 kB / 284 MB, free: 6.148 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001274/0.0207, allocations: 90.3 kB / 284.1 MB, free: 6.055 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.589e-05/0.02079, allocations: 346.7 kB / 284.5 MB, free: 5.707 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001754/0.02096, allocations: 128.1 kB / 284.6 MB, free: 5.578 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001938/0.02116, allocations: 199.2 kB / 284.8 MB, free: 5.371 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003343/0.02149, allocations: 327.6 kB / 285.1 MB, free: 5.031 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.0215, allocations: 4 kB / 285.1 MB, free: 5.027 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0004464/0.02194, allocations: 393.2 kB / 285.5 MB, free: 4.637 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.02196, allocations: 8 kB / 285.5 MB, free: 4.629 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.02197, allocations: 0 / 285.5 MB, free: 4.629 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/0.02199, allocations: 4 kB / 285.5 MB, free: 4.625 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004488/0.02244, allocations: 155.8 kB / 285.6 MB, free: 4.473 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.02244, allocations: 7.938 kB / 285.7 MB, free: 4.465 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002379/0.02268, allocations: 76.03 kB / 285.7 MB, free: 4.391 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.68e-05/0.02271, allocations: 12 kB / 285.7 MB, free: 4.379 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0001469/0.02286, allocations: 144.4 kB / 285.9 MB, free: 4.227 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.486e-05/0.02292, allocations: 35.97 kB / 285.9 MB, free: 4.191 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.854e-05/0.02297, allocations: 47.31 kB / 286 MB, free: 4.145 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.02297, allocations: 4 kB / 286 MB, free: 4.141 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.02298, allocations: 4 kB / 286 MB, free: 4.137 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.02298, allocations: 3.984 kB / 286 MB, free: 4.133 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001498/0.02448, allocations: 1.034 MB / 287 MB, free: 2.969 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.02449, allocations: 8 kB / 287 MB, free: 2.961 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002921/0.02478, allocations: 139.9 kB / 287.2 MB, free: 2.824 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.438e-06/0.02479, allocations: 12 kB / 287.2 MB, free: 2.812 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.832e-05/0.02482, allocations: 19.98 kB / 287.2 MB, free: 2.793 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.657e-06/0.02483, allocations: 19.94 kB / 287.2 MB, free: 2.773 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.665e-06/0.02483, allocations: 11.94 kB / 287.2 MB, free: 2.762 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005858/0.02542, allocations: 0.6815 MB / 287.9 MB, free: 1.949 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.353e-05/0.0255, allocations: 47.8 kB / 287.9 MB, free: 1.902 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.158e-05/0.02553, allocations: 16 kB / 288 MB, free: 1.887 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001969/0.02573, allocations: 55.94 kB / 288 MB, free: 1.832 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/0.02585, allocations: 83.64 kB / 288.1 MB, free: 1.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.105e-05/0.02587, allocations: 20 kB / 288.1 MB, free: 1.73 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.807e-05/0.02592, allocations: 49.86 kB / 288.2 MB, free: 1.68 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02592, allocations: 4 kB / 288.2 MB, free: 1.676 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002791/0.0262, allocations: 96 kB / 288.3 MB, free: 1.582 MB / 266.7 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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.000119/0.02632, allocations: 104.2 kB / 288.4 MB, free: 1.473 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004093/0.02673, allocations: 340.2 kB / 288.7 MB, free: 1.141 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/0.02673, allocations: 8.188 kB / 288.7 MB, free: 1.133 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001669/0.0269, allocations: 147.1 kB / 288.8 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003531/0.02725, allocations: 83.89 kB / 288.9 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1051/0.1323, allocations: 0.8573 MB / 289.8 MB, free: 26.05 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001141/0.1324, allocations: 108.1 kB / 289.9 MB, free: 25.98 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000397/0.1328, allocations: 71.58 kB / 290 MB, free: 25.97 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002928/0.1331, allocations: 103.3 kB / 290.1 MB, free: 25.94 MB / 266.7 MB Notification: Performance of SimCode: time 1.663e-06/0.1331, allocations: 0 / 290.1 MB, free: 25.94 MB / 266.7 MB Notification: Performance of Templates: time 0.01101/0.1441, allocations: 6.604 MB / 296.7 MB, free: 24.76 MB / 266.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 240] 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","",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.8337312629446387]