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.00175/0.00175, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.001637/0.001637, allocations: 215.4 kB / 24.48 MB, free: 3.941 MB / 14.72 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 2.14/2.14, allocations: 230.6 MB / 258.2 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001831/0.001831, allocations: 51.92 kB / 378.9 MB, free: 2.543 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4172/0.419, allocations: 53.36 MB / 432.3 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.004864/0.4239, allocations: 2.074 MB / 434.4 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001735/0.4256, allocations: 0.6549 MB / 435 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000151/0.4258, allocations: 3.938 kB / 435 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003289/0.4261, allocations: 47.64 kB / 435.1 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002224/0.4263, allocations: 55.61 kB / 435.1 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004861/0.4268, allocations: 131.7 kB / 435.3 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005252/0.4273, allocations: 335.2 kB / 435.6 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002036/0.4275, allocations: 56.52 kB / 435.7 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000375/0.4279, allocations: 147.5 kB / 435.8 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003228/0.4282, allocations: 167.4 kB / 436 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.825e-05/0.4283, allocations: 32 kB / 436 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.374e-05/0.4284, allocations: 28 kB / 436 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001348/0.4285, allocations: 87.73 kB / 436.1 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001476/0.4286, allocations: 99.56 kB / 436.2 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000473/0.4291, allocations: 300.5 kB / 436.5 MB, free: 2.508 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.4291, allocations: 0 / 436.5 MB, free: 2.508 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4291, allocations: 0 / 436.5 MB, free: 2.508 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.4291, allocations: 0 / 436.5 MB, free: 2.508 MB / 334.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.001517/0.4306, allocations: 0.5204 MB / 437 MB, free: 1.957 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.4307, allocations: 8.031 kB / 437 MB, free: 1.949 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.512e-05/0.4308, allocations: 36.8 kB / 437.1 MB, free: 1.914 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004916/0.4313, allocations: 190.8 kB / 437.3 MB, free: 1.703 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004205/0.4317, allocations: 343.8 kB / 437.6 MB, free: 1.301 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.033e-05/0.4318, allocations: 23.94 kB / 437.6 MB, free: 1.277 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001238/0.433, allocations: 370.6 kB / 438 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.999e-05/0.433, allocations: 11.94 kB / 438 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.367e-05/0.4331, allocations: 12 kB / 438 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.165e-05/0.4331, allocations: 8 kB / 438 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001887/0.435, allocations: 489.6 kB / 438.5 MB, free: 400 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002462/0.4374, allocations: 0.8567 MB / 439.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001366/0.4388, allocations: 302.4 kB / 439.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007197/0.4395, allocations: 173.2 kB / 439.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.104e-05/0.4396, allocations: 12 kB / 439.8 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.524e-05/0.4396, allocations: 34.56 kB / 439.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 2.484e-06/0.4396, allocations: 0 / 439.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=53): time 0.04027/0.4799, allocations: 5.681 MB / 445.5 MB, free: 9.223 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.941e-05/0.4799, allocations: 59.78 kB / 445.6 MB, free: 9.152 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003772/0.4803, allocations: 210.8 kB / 445.8 MB, free: 8.938 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.419e-05/0.4804, allocations: 33.7 kB / 445.8 MB, free: 8.898 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001483/0.4805, allocations: 152.9 kB / 446 MB, free: 8.746 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002527/0.4808, allocations: 194.4 kB / 446.2 MB, free: 8.555 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000341/0.4811, allocations: 86.34 kB / 446.2 MB, free: 8.465 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002047/0.4813, allocations: 338.8 kB / 446.6 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002024/0.4834, allocations: 473 kB / 447 MB, free: 7.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002109/0.4855, allocations: 0.5225 MB / 447.6 MB, free: 7.129 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003591/0.4891, allocations: 0.8101 MB / 448.4 MB, free: 6.305 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.4891, allocations: 0 / 448.4 MB, free: 6.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.004307/0.4934, allocations: 1.005 MB / 449.4 MB, free: 5.293 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.354e-05/0.4934, allocations: 4 kB / 449.4 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.4934, allocations: 3.984 kB / 449.4 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.255e-05/0.4934, allocations: 4 kB / 449.4 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001518/0.495, allocations: 175.7 kB / 449.6 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.682e-05/0.495, allocations: 4 kB / 449.6 MB, free: 5.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001057/0.496, allocations: 87.88 kB / 449.7 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.975e-05/0.4961, allocations: 16 kB / 449.7 MB, free: 5.004 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: 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.0003494/0.4965, allocations: 161.7 kB / 449.8 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001411/0.4966, allocations: 27.81 kB / 449.9 MB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001533/0.4968, allocations: 51.31 kB / 449.9 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.4968, allocations: 11.94 kB / 449.9 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.4968, allocations: 0 / 449.9 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.4968, allocations: 7.922 kB / 449.9 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00634/0.5031, allocations: 1.701 MB / 451.6 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.485e-05/0.5031, allocations: 12.22 kB / 451.6 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001033/0.5042, allocations: 143.8 kB / 451.8 MB, free: 2.742 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.919e-05/0.5042, allocations: 12 kB / 451.8 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.732e-05/0.5043, allocations: 20 kB / 451.8 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.15e-05/0.5043, allocations: 15.92 kB / 451.8 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.862e-05/0.5043, allocations: 19.88 kB / 451.8 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004408/0.5087, allocations: 1.25 MB / 453.1 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002701/0.509, allocations: 63.86 kB / 453.2 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.966e-05/0.5091, allocations: 23.98 kB / 453.2 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008528/0.5099, allocations: 75.84 kB / 453.3 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002772/0.5102, allocations: 83.72 kB / 453.3 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-05/0.5103, allocations: 24 kB / 453.4 MB, free: 1.027 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002585/0.5105, allocations: 160.3 kB / 453.5 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5105, allocations: 0 / 453.5 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008166/0.5113, allocations: 96 kB / 453.6 MB, free: 0.7773 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: 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.000205/0.5116, allocations: 130.9 kB / 453.7 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003556/0.5151, allocations: 0.798 MB / 454.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.5151, allocations: 0 / 454.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001532/0.5166, allocations: 325.7 kB / 454.9 MB, free: 15.53 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001018/0.5177, allocations: 62.48 kB / 454.9 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003144/0.5208, allocations: 1.017 MB / 455.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002241/0.521, allocations: 172.2 kB / 456.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005534/0.5216, allocations: 86.88 kB / 456.2 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002916/0.5219, allocations: 27.44 kB / 456.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of SimCode: time 7.21e-07/0.5219, allocations: 0 / 456.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of Templates: time 0.01715/0.539, allocations: 6.502 MB / 462.7 MB, free: 7.59 MB / 366.1 MB " [Timeout remaining time 659] 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=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 7.201358436999726]