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.001454/0.001454, allocations: 83.75 kB / 21.19 MB, free: 3.375 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.001756/0.001756, allocations: 165.4 kB / 24.56 MB, free: 8 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.9661/0.9661, allocations: 177.1 MB / 205 MB, free: 5.285 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 1.553e-06/1.553e-06, allocations: 0 / 272.9 MB, free: 1.422 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.057e-05/2.212e-05, allocations: 5.125 kB / 273 MB, free: 1.418 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002853/0.002876, allocations: 2.183 MB / 275.1 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001053/0.003928, allocations: 0.6625 MB / 275.8 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001084/0.004037, allocations: 8 kB / 275.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002576/0.004294, allocations: 51.58 kB / 275.9 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001478/0.004442, allocations: 55.61 kB / 275.9 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003256/0.004768, allocations: 119.7 kB / 276 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003243/0.005092, allocations: 347.1 kB / 276.4 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001373/0.00523, allocations: 48.55 kB / 276.4 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000304/0.005534, allocations: 207.5 kB / 276.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001791/0.005713, allocations: 131.6 kB / 276.7 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.54e-05/0.005758, allocations: 32 kB / 276.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.887e-05/0.005797, allocations: 28 kB / 276.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.513e-05/0.005882, allocations: 95.69 kB / 276.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.001e-05/0.005962, allocations: 87.78 kB / 277 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002648/0.006227, allocations: 223.2 kB / 277.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.814e-06/0.006229, allocations: 0 / 277.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.62e-07/0.006229, allocations: 0 / 277.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.418e-06/0.006234, allocations: 4 kB / 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.0008193/0.007053, allocations: 0.5894 MB / 277.8 MB, free: 12.52 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.007088, allocations: 12.03 kB / 277.8 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.938e-05/0.007178, allocations: 56.8 kB / 277.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002432/0.007421, allocations: 196.7 kB / 278.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002062/0.007627, allocations: 335.8 kB / 278.4 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.275e-05/0.0077, allocations: 24.38 kB / 278.4 MB, free: 11.81 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004631/0.008163, allocations: 285.3 kB / 278.7 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.008177, allocations: 3.953 kB / 278.7 MB, free: 11.51 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.666e-05/0.008204, allocations: 8 kB / 278.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.008215, allocations: 8 kB / 278.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004446/0.00866, allocations: 226.8 kB / 278.9 MB, free: 11.28 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001183/0.009842, allocations: 0.8744 MB / 279.8 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004227/0.01027, allocations: 185.4 kB / 280 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003889/0.01065, allocations: 75.64 kB / 280.1 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.826e-05/0.01068, allocations: 8 kB / 280.1 MB, free: 10.08 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.332e-05/0.01071, allocations: 41.39 kB / 280.1 MB, free: 10.03 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.833e-06/0.01071, allocations: 0 / 280.1 MB, free: 10.03 MB / 266.7 MB Notification: Performance of matching and sorting (n=53): time 0.007086/0.01779, allocations: 2.832 MB / 282.9 MB, free: 7.129 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.163e-05/0.01782, allocations: 55.91 kB / 283 MB, free: 7.062 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001752/0.018, allocations: 253.7 kB / 283.2 MB, free: 6.797 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.112e-05/0.01804, allocations: 29.7 kB / 283.3 MB, free: 6.762 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.617e-05/0.01813, allocations: 203.7 kB / 283.5 MB, free: 6.559 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/0.01826, allocations: 182.4 kB / 283.6 MB, free: 6.379 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001556/0.01842, allocations: 96 kB / 283.7 MB, free: 6.277 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.01853, allocations: 0.5117 MB / 284.2 MB, free: 5.754 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002819/0.01881, allocations: 205.2 kB / 284.4 MB, free: 5.551 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000306/0.01912, allocations: 293.4 kB / 284.7 MB, free: 5.246 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004767/0.0196, allocations: 404.3 kB / 285.1 MB, free: 4.832 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.0196, allocations: 4 kB / 285.1 MB, free: 4.828 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.000699/0.0203, allocations: 0.5558 MB / 285.7 MB, free: 4.262 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.02031, allocations: 4 kB / 285.7 MB, free: 4.258 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.02032, allocations: 0 / 285.7 MB, free: 4.258 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.02033, allocations: 4 kB / 285.7 MB, free: 4.254 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004456/0.02078, allocations: 155.8 kB / 285.8 MB, free: 4.102 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.02078, allocations: 4 kB / 285.9 MB, free: 4.098 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002664/0.02105, allocations: 75.97 kB / 285.9 MB, free: 4.023 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.087e-05/0.02108, 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.0001357/0.02122, allocations: 184.5 kB / 286.1 MB, free: 3.816 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.146e-05/0.02129, allocations: 51.8 kB / 286.2 MB, free: 3.766 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.856e-05/0.02134, allocations: 47.3 kB / 286.2 MB, free: 3.723 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.02134, allocations: 8 kB / 286.2 MB, free: 3.715 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.666e-06/0.02134, allocations: 0 / 286.2 MB, free: 3.715 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.02135, allocations: 0 / 286.2 MB, free: 3.715 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001732/0.02308, allocations: 1.315 MB / 287.5 MB, free: 2.211 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.02308, allocations: 12.03 kB / 287.6 MB, free: 2.199 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002822/0.02337, allocations: 131.8 kB / 287.7 MB, free: 2.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.667e-06/0.02338, allocations: 15.98 kB / 287.7 MB, free: 2.055 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.548e-05/0.0234, allocations: 16 kB / 287.7 MB, free: 2.039 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.296e-06/0.02341, allocations: 19.92 kB / 287.7 MB, free: 2.02 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/0.02342, allocations: 11.94 kB / 287.7 MB, free: 2.008 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007511/0.02417, allocations: 0.8801 MB / 288.6 MB, free: 0.9531 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.237e-05/0.02426, allocations: 63.81 kB / 288.7 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.831e-05/0.0243, allocations: 23.98 kB / 288.7 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002112/0.02451, allocations: 55.94 kB / 288.8 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/0.02462, allocations: 75.66 kB / 288.8 MB, free: 0.7383 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.369e-05/0.02464, allocations: 24 kB / 288.9 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.749e-05/0.02472, allocations: 176.2 kB / 289 MB, free: 0.543 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02472, allocations: 0 / 289 MB, free: 0.543 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002821/0.025, allocations: 96 kB / 289.1 MB, free: 460 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.0001003/0.0251, allocations: 123.1 kB / 289.2 MB, free: 324 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.1029/0.128, allocations: 423.5 kB / 289.7 MB, free: 26.14 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.244e-05/0.128, allocations: 1.375 kB / 289.7 MB, free: 26.14 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004642/0.1285, allocations: 155.6 kB / 289.8 MB, free: 26.13 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006363/0.1291, allocations: 88.16 kB / 289.9 MB, free: 26.13 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001738/0.1308, allocations: 0.9625 MB / 290.9 MB, free: 25.46 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001013/0.1309, allocations: 109.7 kB / 291 MB, free: 25.38 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002576/0.1312, allocations: 74.94 kB / 291 MB, free: 25.38 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001638/0.1314, allocations: 37.34 kB / 291.1 MB, free: 25.38 MB / 266.7 MB Notification: Performance of SimCode: time 1.914e-06/0.1314, allocations: 1.094 kB / 291.1 MB, free: 25.38 MB / 266.7 MB Notification: Performance of Templates: time 0.009121/0.1405, allocations: 6.514 MB / 297.6 MB, free: 24.02 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: 2.946514564100653]