Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Blocks.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criticalDamping.x.1.|criticalDamping.x.2.|derivative.x|firstOrder.y|integrator.y|limIntegrator.y|limPID.D.x|limPID.I.y|lowpassButterworth.x1.1.|lowpassButterworth.x2.1.|pI.x|pID.D.x|pID.I.y|secondOrder.y|secondOrder.yd|stateSpace.x.1.|stateSpace.x.2.|transferFunction.x_scaled.1.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous") translateModel(ModelicaTest.Blocks.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criticalDamping.x.1.|criticalDamping.x.2.|derivative.x|firstOrder.y|integrator.y|limIntegrator.y|limPID.D.x|limPID.I.y|lowpassButterworth.x1.1.|lowpassButterworth.x2.1.|pI.x|pID.D.x|pID.I.y|secondOrder.y|secondOrder.yd|stateSpace.x.1.|stateSpace.x.2.|transferFunction.x_scaled.1.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 110.3 kB / 18.4 MB, free: 4.781 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 196.6 kB / 19.34 MB, free: 3.852 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.271/1.271, allocations: 222.9 MB / 243 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.199/0.199, allocations: 44.19 MB / 337.4 MB, free: 2.703 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.422e-05/2.425e-05, allocations: 2.281 kB / 409.8 MB, free: 26.6 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous): time 0.00339/0.00343, allocations: 3.343 MB / 413.1 MB, free: 23.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002072/0.005514, allocations: 1.54 MB / 414.7 MB, free: 21.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000278/0.005806, allocations: 23.88 kB / 414.7 MB, free: 21.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004623/0.006277, allocations: 138.8 kB / 414.8 MB, free: 21.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003298/0.006618, allocations: 198.6 kB / 415 MB, free: 21.35 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008178/0.007458, allocations: 0.5177 MB / 415.6 MB, free: 20.83 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006508/0.008119, allocations: 1.014 MB / 416.6 MB, free: 19.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002825/0.008409, allocations: 242.4 kB / 416.8 MB, free: 19.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002869/0.008703, allocations: 378.5 kB / 417.2 MB, free: 19.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002467/0.008959, allocations: 362.2 kB / 417.5 MB, free: 18.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.207e-05/0.009039, allocations: 64 kB / 417.6 MB, free: 18.78 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.297e-05/0.009107, allocations: 64 kB / 417.7 MB, free: 18.71 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0004286/0.009541, allocations: 1.2 MB / 418.9 MB, free: 17.5 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001987/0.009746, allocations: 0.781 MB / 419.6 MB, free: 16.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.327e-05/0.009825, allocations: 111.5 kB / 419.7 MB, free: 16.6 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.518e-05/0.009916, allocations: 51.67 kB / 419.8 MB, free: 16.55 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 (109) * Number of variables: 110 (107) Notification: Performance of Bindings: time 0.001747/0.01167, allocations: 3.352 MB / 423.2 MB, free: 13.05 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001227/0.0118, allocations: 151.8 kB / 423.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0008007/0.01261, allocations: 1.342 MB / 424.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001124/0.01273, allocations: 131.8 kB / 424.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of Alias: time 0.001592/0.01432, allocations: 2.239 MB / 427 MB, free: 8.844 MB / 302.1 MB Notification: Performance of simplify2: time 6.27e-05/0.0144, allocations: 99.86 kB / 427.1 MB, free: 8.746 MB / 302.1 MB Notification: Performance of Events: time 0.0001501/0.01455, allocations: 165.5 kB / 427.3 MB, free: 8.586 MB / 302.1 MB Notification: Performance of Detect States: time 0.0003121/0.01487, allocations: 467.9 kB / 427.7 MB, free: 8.113 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002953/0.01518, allocations: 418.1 kB / 428.1 MB, free: 7.668 MB / 302.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency stateSpace.u could not be devided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (2) $DER.stateSpace.x = stateSpace.A * stateSpace.x + stateSpace.B * stateSpace.u ($RES_SIM_39) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (36/39) ************************** (1) [ALGB] (1) Real limPID.addI.y (2) [DISC] (1) Boolean $SEV_1 (3) [DISC] (1) Boolean $SEV_0 (4) [ALGB] (1) Real limPID.addP.u1 (5) [ALGB] (1) protected Real[1] lowpassButterworth.poleimag (6) [ALGB] (1) Real[1] transferFunction.x (start = transferFunction.x_start) (7) [ALGB] (1) Real criticalDamping.y (8) [ALGB] (1) Real limPID.addSat.y (9) [ALGB] (1) Real transferFunction.y (10) [ALGB] (1) Real limPID.P.y (11) [ALGB] (1) Real limPID.addPID.y (12) [ALGB] (1) Real[1] stateSpace.u (13) [ALGB] (1) protected Real[1] lowpassButterworth.k2 (14) [DER-] (1) Real[1] $DER.transferFunction.x_scaled (15) [DER-] (1) Real $DER.limPID.D.x (16) [ALGB] (1) Real[1] stateSpace.y (17) [ALGB] (1) Real limPID.D.y (18) [ALGB] (1) protected Real limPID.limiter.simplifiedExpr (19) [ALGB] (1) Real limPID.addSat.u1 (20) [ALGB] (1) protected Real[1] lowpassButterworth.polereal (21) [ALGB] (1) Real lowpassButterworth.y (22) [ALGB] (2) protected Real[2] lowpassButterworth.z (23) [ALGB] (1) Real limPID.gainTrack.y (24) [DER-] (2) Real[2] $DER.criticalDamping.x (25) [DER-] (1) Real $DER.limPID.I.y (26) [ALGB] (1) Real limPID.gainPID.y (27) [DISC] (1) Boolean $TEV_2 (28) [DISC] (1) Boolean $TEV_1 (29) [ALGB] (1) protected Real[1] lowpassButterworth.D (30) [ALGB] (1) Real limPID.controlError = limPID.addP.u1 - const.k (31) [ALGB] (1) Real limPID.addD.y (32) [DER-] (2) Real[2] $DER.stateSpace.x (33) [DER-] (1) Real[1] $DER.lowpassButterworth.x2 (34) [DER-] (1) Real[1] $DER.lowpassButterworth.x1 (35) [ALGB] (1) protected Real[1] lowpassButterworth.w0 (36) [ALGB] (1) Real limPID.addP.y System Equations (38/39) ************************** (1) [SCAL] (1) lowpassButterworth.polereal[1] = -0.7071067811865475 ($RES_SIM_31) (2) [SCAL] (1) $TEV_1 = time < ramp1.startTime ($RES_EVT_130) (3) [SCAL] (1) lowpassButterworth.poleimag[1] = 0.7071067811865476 ($RES_SIM_32) (4) [SCAL] (1) $TEV_2 = time < (ramp1.startTime + ramp1.duration) ($RES_EVT_131) (5) [SCAL] (1) lowpassButterworth.w0[1] = (lowpassButterworth.polereal[1] ^ 2.0 + lowpassButterworth.poleimag[1] ^ 2.0) * lowpassButterworth.w ($RES_SIM_33) (6) [SCAL] (1) lowpassButterworth.D[1] = -(lowpassButterworth.polereal[1] / lowpassButterworth.w0[1]) * lowpassButterworth.w ($RES_SIM_34) (7) [SCAL] (1) limPID.addP.u1 = ramp1.offset + (if $TEV_1 then 0.0 else if $TEV_2 then (ramp1.height * (time - ramp1.startTime)) / ramp1.duration else ramp1.height) ($RES_SIM_19) (8) [SCAL] (1) lowpassButterworth.z[1] = limPID.addP.u1 ($RES_SIM_35) (9) [SCAL] (1) limPID.addI.y = limPID.addI.k2 * const.k + limPID.addI.k1 * limPID.addP.u1 + limPID.addI.k3 * limPID.gainTrack.y ($RES_SIM_50) (10) [SCAL] (1) $SEV_0 = limPID.limiter.simplifiedExpr > limPID.limiter.uMax ($RES_EVT_134) (11) [SCAL] (1) limPID.addPID.y = limPID.addPID.k2 * limPID.D.y + limPID.addPID.k1 * limPID.P.y + limPID.addPID.k3 * limPID.I.y ($RES_SIM_51) (12) [SCAL] (1) $SEV_1 = limPID.limiter.simplifiedExpr < limPID.limiter.uMin ($RES_EVT_135) (13) [SCAL] (1) limPID.gainPID.y = limPID.gainPID.k * limPID.addPID.y ($RES_SIM_52) (14) [ARRY] (1) lowpassButterworth.k2 = {1.0} ($RES_SIM_37) (15) [SCAL] (1) limPID.D.y = (limPID.D.k / limPID.D.T) * (limPID.addD.y - limPID.D.x) ($RES_SIM_53) (16) [ARRY] (1) stateSpace.y = stateSpace.C * stateSpace.x + stateSpace.D * stateSpace.u ($RES_SIM_38) (17) [SCAL] (1) $DER.limPID.D.x = (limPID.addD.y - limPID.D.x) / limPID.D.T ($RES_SIM_54) (18) [ARRY] (2) $DER.stateSpace.x = stateSpace.A * stateSpace.x + stateSpace.B * stateSpace.u ($RES_SIM_39) (19) [SCAL] (1) $DER.limPID.I.y = limPID.I.k * limPID.addI.y ($RES_SIM_55) (20) [SCAL] (1) limPID.P.y = limPID.P.k * limPID.addP.y ($RES_SIM_58) (21) [SCAL] (1) limPID.addD.y = limPID.addD.k1 * limPID.addP.u1 + limPID.addD.k2 * const.k ($RES_SIM_59) (22) [SCAL] (1) criticalDamping.y = criticalDamping.x[2] ($RES_SIM_21) (23) [SCAL] (1) $DER.criticalDamping.x[2] = (criticalDamping.x[1] - criticalDamping.x[2]) * criticalDamping.w ($RES_SIM_22) (24) [SCAL] (1) $DER.criticalDamping.x[1] = (limPID.addP.u1 - criticalDamping.x[1]) * criticalDamping.w ($RES_SIM_23) (25) [SCAL] (1) lowpassButterworth.y = lowpassButterworth.z[2] ($RES_SIM_24) (26) [ARRY] (1) transferFunction.x = transferFunction.x_scaled / transferFunction.a_end ($RES_SIM_40) (27) [SCAL] (1) transferFunction.y = (transferFunction.bb[2:2] - transferFunction.d * transferFunction.a[2:2]) / (transferFunction.a_end * transferFunction.x_scaled) + transferFunction.d * limPID.addP.u1 ($RES_SIM_41) (28) [SCAL] (1) $DER.lowpassButterworth.x1[1] = lowpassButterworth.x2[1] ($RES_SIM_26) (29) [SCAL] (1) $DER.lowpassButterworth.x2[1] = lowpassButterworth.w0[1] ^ 2.0 * lowpassButterworth.k2[1] * lowpassButterworth.z[1] - (lowpassButterworth.w0[1] ^ 2.0 * lowpassButterworth.x1[1] + 2.0 * lowpassButterworth.w0[1] * lowpassButterworth.D[1] * lowpassButterworth.x2[1]) ($RES_SIM_27) (30) [SCAL] (1) $DER.transferFunction.x_scaled[1] = (transferFunction.a_end * limPID.addP.u1 - transferFunction.a[2:2] * transferFunction.x_scaled) / transferFunction.a[1] ($RES_SIM_42) (31) [SCAL] (1) lowpassButterworth.z[2] = lowpassButterworth.x1[1] ($RES_SIM_28) (32) [SCAL] (1) limPID.limiter.simplifiedExpr = limPID.addFF.k1 * limPID.gainPID.y + limPID.addFF.k2 * limPID.FFzero.k ($RES_SIM_43) (33) [SCAL] (1) limPID.controlError = limPID.addP.u1 - const.k ($RES_BND_125) (34) [SCAL] (1) limPID.addP.y = limPID.addP.k1 * limPID.addP.u1 + limPID.addP.k2 * const.k ($RES_SIM_60) (35) [SCAL] (1) limPID.addSat.u1 = homotopy(smooth(0, if $SEV_0 then limPID.limiter.uMax else if $SEV_1 then limPID.limiter.uMin else limPID.limiter.simplifiedExpr), limPID.limiter.simplifiedExpr) ($RES_SIM_45) (36) [SCAL] (1) limPID.gainTrack.y = limPID.gainTrack.k * limPID.addSat.y ($RES_SIM_48) (37) [SCAL] (1) limPID.addSat.y = limPID.addSat.k1 * limPID.addSat.u1 + limPID.addSat.k2 * limPID.limiter.simplifiedExpr ($RES_SIM_49) (38) [SCAL] (1) limPID.addP.u1 = stateSpace.u[1] ($RES_SIM_86)