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.001905/0.001905, allocations: 117.9 kB / 19.18 MB, free: 3.883 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.001733/0.001733, allocations: 208.9 kB / 22.13 MB, free: 0.9336 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.509/1.509, allocations: 230.2 MB / 255.1 MB, free: 15.25 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.001871/0.001871, allocations: 67.83 kB / 374.5 MB, free: 9.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1311, allocations: 53.32 MB / 427.8 MB, free: 4.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003747/0.1349, allocations: 2.156 MB / 430 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001259/0.1361, allocations: 0.69 MB / 430.7 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.1363, allocations: 4 kB / 430.7 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002902/0.1365, allocations: 47.64 kB / 430.7 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001429/0.1367, allocations: 43.62 kB / 430.8 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000342/0.137, allocations: 135.8 kB / 430.9 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003884/0.1374, allocations: 339.2 kB / 431.2 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001731/0.1376, allocations: 52.36 kB / 431.3 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002803/0.1379, allocations: 147.4 kB / 431.4 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002324/0.1381, allocations: 159.4 kB / 431.6 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.991e-05/0.1382, allocations: 28 kB / 431.6 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.821e-05/0.1382, allocations: 36 kB / 431.6 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00011/0.1383, allocations: 87.72 kB / 431.7 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001232/0.1384, allocations: 123.4 kB / 431.8 MB, free: 468 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000337/0.1388, allocations: 278.9 kB / 432.1 MB, free: 188 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.1388, allocations: 0 / 432.1 MB, free: 188 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1388, allocations: 7.938 kB / 432.1 MB, free: 180 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.1388, allocations: 0 / 432.1 MB, free: 180 kB / 350.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.2441/0.3829, allocations: 0.5792 MB / 432.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.3829, allocations: 10.22 kB / 432.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.534e-05/0.383, allocations: 31.45 kB / 432.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004391/0.3835, allocations: 252 kB / 433 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002061/0.3837, allocations: 134.4 kB / 433.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.565e-05/0.3837, allocations: 23.17 kB / 433.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008937/0.3846, allocations: 370.9 kB / 433.5 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/0.3847, allocations: 7.016 kB / 433.5 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.311e-05/0.3847, allocations: 10.03 kB / 433.5 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.3847, allocations: 6.141 kB / 433.5 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001357/0.3861, allocations: 499.8 kB / 434 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001632/0.3877, allocations: 1.005 MB / 435 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001186/0.3889, allocations: 323.2 kB / 435.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005045/0.3894, allocations: 166.1 kB / 435.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.02e-05/0.3894, allocations: 2.328 kB / 435.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.869e-05/0.3894, allocations: 37.05 kB / 435.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.653e-06/0.3894, allocations: 0 / 435.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.02894/0.4184, allocations: 5.808 MB / 441.3 MB, free: 9.207 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.679e-05/0.4184, allocations: 58.61 kB / 441.4 MB, free: 9.145 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002492/0.4187, allocations: 204.4 kB / 441.6 MB, free: 9.008 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.834e-05/0.4187, allocations: 31.83 kB / 441.6 MB, free: 8.973 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.787e-05/0.4188, allocations: 151.4 kB / 441.8 MB, free: 8.836 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001383/0.4189, allocations: 186.5 kB / 442 MB, free: 8.691 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002292/0.4192, allocations: 91.97 kB / 442 MB, free: 8.637 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.882e-05/0.4193, allocations: 338.5 kB / 442.4 MB, free: 8.312 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001333/0.4206, allocations: 465.3 kB / 442.8 MB, free: 8.156 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001374/0.422, allocations: 0.5197 MB / 443.4 MB, free: 7.941 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002415/0.4244, allocations: 0.7998 MB / 444.2 MB, free: 7.633 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.4244, allocations: 4 kB / 444.2 MB, free: 7.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002894/0.4273, allocations: 0.9862 MB / 445.1 MB, free: 7.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/0.4273, allocations: 4.875 kB / 445.1 MB, free: 7.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.4273, allocations: 2.062 kB / 445.2 MB, free: 7.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.802e-05/0.4273, allocations: 9 kB / 445.2 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00103/0.4284, allocations: 171.2 kB / 445.3 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.488e-05/0.4284, allocations: 7.422 kB / 445.3 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000725/0.4291, allocations: 83.98 kB / 445.4 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.732e-05/0.4292, allocations: 16.75 kB / 445.4 MB, free: 7.246 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.0002342/0.4294, allocations: 160.1 kB / 445.6 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.024e-05/0.4295, allocations: 32.14 kB / 445.6 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001329/0.4296, allocations: 53.81 kB / 445.7 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.4296, allocations: 5.594 kB / 445.7 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.234e-05/0.4296, allocations: 0 / 445.7 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/0.4296, allocations: 2.719 kB / 445.7 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004199/0.4338, allocations: 1.87 MB / 447.6 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.416e-05/0.4339, allocations: 9.234 kB / 447.6 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006884/0.4346, allocations: 149.8 kB / 447.7 MB, free: 6.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.46e-05/0.4346, allocations: 11.16 kB / 447.7 MB, free: 6.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.654e-05/0.4346, allocations: 20.39 kB / 447.7 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.702e-05/0.4346, allocations: 17.42 kB / 447.8 MB, free: 6.008 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.16e-05/0.4346, allocations: 14.47 kB / 447.8 MB, free: 6.004 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002818/0.4375, allocations: 1.226 MB / 449 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000172/0.4376, allocations: 144.3 kB / 449.1 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.58e-05/0.4377, allocations: 22.89 kB / 449.2 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005479/0.4382, allocations: 75.42 kB / 449.2 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002029/0.4384, allocations: 83.62 kB / 449.3 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.529e-05/0.4385, allocations: 29.14 kB / 449.3 MB, free: 5.105 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001804/0.4387, allocations: 148.7 kB / 449.5 MB, free: 5.008 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4387, allocations: 0.9688 kB / 449.5 MB, free: 5.008 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005806/0.4393, allocations: 92.66 kB / 449.6 MB, free: 4.996 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.0001637/0.4394, allocations: 133.5 kB / 449.7 MB, free: 4.887 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002474/0.4419, allocations: 0.7863 MB / 450.5 MB, free: 4.645 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.063e-06/0.4419, allocations: 1.094 kB / 450.5 MB, free: 4.645 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000998/0.4429, allocations: 314.6 kB / 450.8 MB, free: 4.566 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006337/0.4435, allocations: 66.67 kB / 450.9 MB, free: 4.539 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0021/0.4456, allocations: 1.05 MB / 451.9 MB, free: 3.648 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002207/0.4459, allocations: 0.782 MB / 452.7 MB, free: 2.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002725/0.4461, allocations: 31.97 kB / 452.7 MB, free: 2.902 MB / 350.1 MB Notification: Performance of SimCode: time 8.02e-07/0.4461, allocations: 0 / 452.7 MB, free: 2.902 MB / 350.1 MB Notification: Performance of Templates: time 0.008952/0.4551, allocations: 5.611 MB / 458.3 MB, free: 15.97 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.069027564954013]