Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00176/0.00176, allocations: 92.62 kB / 20.96 MB, free: 3.473 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002119/0.002119, allocations: 153.4 kB / 24.25 MB, free: 184 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.482/1.482, allocations: 173.4 MB / 200.8 MB, free: 9.316 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.813e-06/1.813e-06, allocations: 0 / 267.3 MB, free: 6.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.858e-05/3.04e-05, allocations: 2.312 kB / 267.3 MB, free: 6.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004019/0.00405, allocations: 2.259 MB / 269.6 MB, free: 4.469 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001661/0.005711, allocations: 0.7792 MB / 270.3 MB, free: 3.684 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001447/0.005856, allocations: 7.938 kB / 270.4 MB, free: 3.676 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002919/0.006148, allocations: 55.56 kB / 270.4 MB, free: 3.621 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002345/0.006382, allocations: 67.44 kB / 270.5 MB, free: 3.555 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005185/0.006901, allocations: 175.4 kB / 270.6 MB, free: 3.383 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000485/0.007386, allocations: 387.5 kB / 271 MB, free: 3.004 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000186/0.007572, allocations: 68.34 kB / 271.1 MB, free: 2.938 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003449/0.007917, allocations: 235.5 kB / 271.3 MB, free: 2.707 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002539/0.008171, allocations: 143.6 kB / 271.5 MB, free: 2.566 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.428e-05/0.008235, allocations: 32 kB / 271.5 MB, free: 2.535 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.847e-05/0.008293, allocations: 36 kB / 271.5 MB, free: 2.5 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001388/0.008432, allocations: 107.6 kB / 271.6 MB, free: 2.395 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001334/0.008565, allocations: 99.78 kB / 271.7 MB, free: 2.297 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004973/0.009063, allocations: 366.8 kB / 272.1 MB, free: 1.938 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.009067, allocations: 0 / 272.1 MB, free: 1.938 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.009068, allocations: 0 / 272.1 MB, free: 1.938 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.009074, allocations: 0 / 272.1 MB, free: 1.938 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001344/0.01042, allocations: 0.5521 MB / 272.6 MB, free: 1.355 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.01045, allocations: 8.031 kB / 272.6 MB, free: 1.348 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000144/0.0106, allocations: 76.75 kB / 272.7 MB, free: 1.273 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004652/0.01106, allocations: 221.7 kB / 272.9 MB, free: 1.031 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003846/0.01145, allocations: 351.9 kB / 273.3 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.278e-05/0.01152, allocations: 24.38 kB / 273.3 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001384/0.01291, allocations: 0.5789 MB / 273.9 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.01292, allocations: 4.141 kB / 273.9 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.073e-05/0.01297, allocations: 16.06 kB / 273.9 MB, free: 15.97 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.929e-05/0.01298, allocations: 4 kB / 273.9 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001745/0.01473, allocations: 0.5113 MB / 274.4 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001656/0.01639, allocations: 0.8369 MB / 275.3 MB, free: 14.56 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001588/0.01797, allocations: 466.6 kB / 275.7 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007052/0.01868, allocations: 235.4 kB / 275.9 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.148e-05/0.01873, allocations: 8 kB / 275.9 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.653e-05/0.01878, allocations: 50.84 kB / 276 MB, free: 13.76 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 2.484e-06/0.01878, allocations: 0 / 276 MB, free: 13.76 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.03991/0.05869, allocations: 5.769 MB / 281.8 MB, free: 7.98 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001454/0.05883, allocations: 153 kB / 281.9 MB, free: 7.801 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002936/0.05913, allocations: 212.3 kB / 282.1 MB, free: 7.582 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.821e-05/0.05922, allocations: 37.7 kB / 282.2 MB, free: 7.539 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.05934, allocations: 145.7 kB / 282.3 MB, free: 7.391 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002478/0.05959, allocations: 190.3 kB / 282.5 MB, free: 7.203 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00031/0.0599, allocations: 98.28 kB / 282.6 MB, free: 7.102 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000207/0.06011, allocations: 342.8 kB / 282.9 MB, free: 6.758 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001698/0.06181, allocations: 0.6103 MB / 283.5 MB, free: 6.148 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001787/0.06359, allocations: 0.6863 MB / 284.2 MB, free: 5.434 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003213/0.06681, allocations: 1.122 MB / 285.3 MB, free: 4.281 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.06681, allocations: 0 / 285.3 MB, free: 4.281 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.003772/0.07058, allocations: 1.317 MB / 286.7 MB, free: 2.957 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.725e-05/0.07061, allocations: 11.94 kB / 286.7 MB, free: 2.945 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.07062, allocations: 0 / 286.7 MB, free: 2.945 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.342e-05/0.07064, allocations: 11.94 kB / 286.7 MB, free: 2.934 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001333/0.07198, allocations: 175.8 kB / 286.8 MB, free: 2.762 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.612e-05/0.07199, allocations: 7.938 kB / 286.9 MB, free: 2.754 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009426/0.07294, allocations: 88.11 kB / 286.9 MB, free: 2.668 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.963e-05/0.07301, allocations: 20 kB / 287 MB, free: 2.648 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 67 * 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.0003634/0.07338, allocations: 177.6 kB / 287.1 MB, free: 2.465 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004258/0.0738, allocations: 181.3 kB / 287.3 MB, free: 2.281 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001884/0.07399, allocations: 71.3 kB / 287.4 MB, free: 2.211 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/0.074, allocations: 8 kB / 287.4 MB, free: 2.203 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.07401, allocations: 0 / 287.4 MB, free: 2.203 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.293e-05/0.07402, allocations: 7.984 kB / 287.4 MB, free: 2.195 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005373/0.0794, allocations: 1.914 MB / 289.3 MB, free: 120 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-05/0.07941, allocations: 8 kB / 289.3 MB, free: 112 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1146/0.1941, allocations: 183.3 kB / 289.5 MB, free: 32.94 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-05/0.1941, allocations: 14.53 kB / 289.5 MB, free: 32.94 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.872e-05/0.1942, allocations: 25.12 kB / 289.5 MB, free: 32.94 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.756e-05/0.1942, allocations: 20.88 kB / 289.6 MB, free: 32.94 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.119e-05/0.1942, allocations: 15.38 kB / 289.6 MB, free: 32.94 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003211/0.1974, allocations: 1.585 MB / 291.2 MB, free: 32.36 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000247/0.1976, allocations: 87.42 kB / 291.2 MB, free: 32.36 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.384e-05/0.1977, allocations: 31.75 kB / 291.3 MB, free: 32.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006247/0.1983, allocations: 75.91 kB / 291.3 MB, free: 32.36 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002266/0.1986, allocations: 104.1 kB / 291.5 MB, free: 32.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.229e-05/0.1986, allocations: 30.14 kB / 291.5 MB, free: 32.36 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001366/0.1988, allocations: 144.6 kB / 291.6 MB, free: 32.28 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1988, allocations: 0 / 291.6 MB, free: 32.28 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006361/0.1994, allocations: 118.4 kB / 291.7 MB, free: 32.28 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.0001602/0.1996, allocations: 135.4 kB / 291.9 MB, free: 32.19 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002707/0.2023, allocations: 0.9947 MB / 292.9 MB, free: 31.88 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/0.2023, allocations: 5.281 kB / 292.9 MB, free: 31.88 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001014/0.2033, allocations: 340.4 kB / 293.2 MB, free: 31.79 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000951/0.2043, allocations: 153.8 kB / 293.4 MB, free: 31.75 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002256/0.2065, allocations: 1.139 MB / 294.5 MB, free: 30.94 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002451/0.2068, allocations: 210.1 kB / 294.7 MB, free: 30.85 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004756/0.2072, allocations: 90.38 kB / 294.8 MB, free: 30.82 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003028/0.2075, allocations: 42.53 kB / 294.8 MB, free: 30.82 MB / 266.7 MB Notification: Performance of SimCode: time 1.372e-06/0.2075, allocations: 2.953 kB / 294.8 MB, free: 30.82 MB / 266.7 MB Notification: Performance of Templates: time 0.01279/0.2203, allocations: 8.72 MB / 303.5 MB, free: 27.3 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.734338638023473]