Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 75.59 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 161.4 kB / 24.56 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9689/0.9689, allocations: 177.2 MB / 205 MB, free: 5.293 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_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_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.245e-06/2.245e-06, allocations: 0 / 272.9 MB, free: 1.422 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.317e-05/2.542e-05, allocations: 2.312 kB / 272.9 MB, free: 1.418 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003462/0.003488, allocations: 2.178 MB / 275.1 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001384/0.004872, allocations: 0.6703 MB / 275.8 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001484/0.00502, allocations: 4 kB / 275.8 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003992/0.005419, allocations: 47.64 kB / 275.8 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001757/0.005595, allocations: 59.48 kB / 275.9 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003987/0.005994, allocations: 123.8 kB / 276 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004103/0.006404, allocations: 343.1 kB / 276.4 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002005/0.006604, allocations: 48.55 kB / 276.4 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003714/0.006976, allocations: 211.5 kB / 276.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002148/0.007191, allocations: 127.6 kB / 276.7 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.336e-05/0.007244, allocations: 28 kB / 276.8 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.846e-05/0.007292, allocations: 32 kB / 276.8 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001035/0.007396, allocations: 95.69 kB / 276.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.937e-05/0.007495, allocations: 87.78 kB / 277 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003208/0.007816, allocations: 223.2 kB / 277.2 MB, free: 13.15 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.007819, allocations: 4 kB / 277.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.00782, allocations: 0 / 277.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.007825, allocations: 0 / 277.2 MB, free: 13.14 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.0009492/0.008774, allocations: 0.5933 MB / 277.8 MB, free: 12.52 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.008818, allocations: 8.031 kB / 277.8 MB, free: 12.51 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001089/0.008927, allocations: 60.8 kB / 277.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002902/0.009217, allocations: 192.7 kB / 278 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002682/0.009485, allocations: 335.8 kB / 278.4 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.343e-05/0.009548, allocations: 24.38 kB / 278.4 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005635/0.01011, allocations: 285.3 kB / 278.7 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.263e-05/0.01013, allocations: 7.953 kB / 278.7 MB, free: 11.51 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.361e-05/0.01017, allocations: 8 kB / 278.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.631e-05/0.01018, allocations: 8 kB / 278.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005504/0.01073, allocations: 218.8 kB / 278.9 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001459/0.01219, allocations: 0.8783 MB / 279.8 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004799/0.01267, allocations: 185.4 kB / 280 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001736/0.01285, allocations: 75.64 kB / 280 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.717e-05/0.01288, allocations: 4 kB / 280 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.693e-05/0.01291, allocations: 37.39 kB / 280.1 MB, free: 10.04 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.813e-06/0.01291, allocations: 4 kB / 280.1 MB, free: 10.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=53): time 0.01125/0.02416, allocations: 2.838 MB / 282.9 MB, free: 7.133 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.201e-05/0.0242, allocations: 63.89 kB / 283 MB, free: 7.059 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000195/0.0244, allocations: 241.8 kB / 283.2 MB, free: 6.805 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.532e-05/0.02444, allocations: 37.7 kB / 283.3 MB, free: 6.762 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.352e-05/0.02454, allocations: 195.7 kB / 283.5 MB, free: 6.566 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001389/0.02467, allocations: 190.4 kB / 283.6 MB, free: 6.379 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001951/0.02487, allocations: 92 kB / 283.7 MB, free: 6.281 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.02502, allocations: 0.5117 MB / 284.2 MB, free: 5.758 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004197/0.02544, allocations: 209.2 kB / 284.4 MB, free: 5.551 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003488/0.02893, allocations: 285.4 kB / 284.7 MB, free: 5.254 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006643/0.02959, allocations: 412.2 kB / 285.1 MB, free: 4.832 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.02959, allocations: 0 / 285.1 MB, free: 4.832 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009872/0.03058, allocations: 0.552 MB / 285.7 MB, free: 4.27 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.285e-05/0.0306, allocations: 8 kB / 285.7 MB, free: 4.262 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.03061, allocations: 0 / 285.7 MB, free: 4.262 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.267e-05/0.03063, allocations: 4 kB / 285.7 MB, free: 4.258 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006327/0.03127, allocations: 159.7 kB / 285.8 MB, free: 4.102 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.03128, allocations: 4 kB / 285.9 MB, free: 4.098 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003424/0.0347, allocations: 75.97 kB / 285.9 MB, free: 4.023 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.561e-05/0.03476, allocations: 16 kB / 285.9 MB, free: 4.008 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.0001748/0.03493, allocations: 180.5 kB / 286.1 MB, free: 3.82 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.03504, allocations: 47.81 kB / 286.2 MB, free: 3.773 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.86e-05/0.03512, allocations: 51.3 kB / 286.2 MB, free: 3.727 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.03513, allocations: 4 kB / 286.2 MB, free: 3.723 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.03513, allocations: 4 kB / 286.2 MB, free: 3.719 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.03514, allocations: 0 / 286.2 MB, free: 3.719 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002218/0.03736, allocations: 1.318 MB / 287.5 MB, free: 2.211 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.023e-05/0.03737, allocations: 8.156 kB / 287.5 MB, free: 2.203 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003478/0.04085, allocations: 139.7 kB / 287.7 MB, free: 2.066 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-05/0.04086, allocations: 12 kB / 287.7 MB, free: 2.055 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.882e-05/0.0409, allocations: 20 kB / 287.7 MB, free: 2.035 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.259e-05/0.04091, allocations: 11.98 kB / 287.7 MB, free: 2.023 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.114e-05/0.04092, allocations: 15.94 kB / 287.7 MB, free: 2.008 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001081/0.042, allocations: 0.8762 MB / 288.6 MB, free: 0.957 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001434/0.04215, allocations: 67.75 kB / 288.7 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.205e-05/0.0422, allocations: 23.98 kB / 288.7 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003565/0.04255, allocations: 55.94 kB / 288.8 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001622/0.04272, allocations: 75.72 kB / 288.8 MB, free: 0.7383 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.191e-05/0.04276, allocations: 27.98 kB / 288.9 MB, free: 0.7109 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001047/0.04286, allocations: 164.2 kB / 289 MB, free: 0.5508 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04286, allocations: 4 kB / 289 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00051/0.04337, allocations: 96 kB / 289.1 MB, free: 464 kB / 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.003153/0.04653, allocations: 127 kB / 289.2 MB, free: 324 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.1673/0.2138, allocations: 418.7 kB / 289.7 MB, free: 25.62 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.064e-05/0.2138, allocations: 0.5625 kB / 289.7 MB, free: 25.62 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002878/0.2141, allocations: 160.6 kB / 289.8 MB, free: 25.61 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000511/0.2146, allocations: 84.61 kB / 289.9 MB, free: 25.61 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001368/0.216, allocations: 0.9643 MB / 290.9 MB, free: 24.94 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.314e-05/0.216, allocations: 107.1 kB / 291 MB, free: 24.86 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000232/0.2163, allocations: 77.66 kB / 291 MB, free: 24.85 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/0.2164, allocations: 33.06 kB / 291.1 MB, free: 24.85 MB / 266.7 MB Notification: Performance of SimCode: time 1.133e-06/0.2164, allocations: 0 / 291.1 MB, free: 24.85 MB / 266.7 MB Notification: Performance of Templates: time 0.008014/0.2245, allocations: 6.152 MB / 297.2 MB, free: 23.74 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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: 3.1801447020843625]