Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.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.001401/0.001401, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.001249/0.001249, allocations: 161.4 kB / 24.56 MB, free: 16 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 1.051/1.051, allocations: 177.1 MB / 205 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.2649/0.2649, allocations: 29.41 MB / 290.9 MB, free: 2.523 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) 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(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1200,variableFilter="Time|asm_ctrl.motor.tau_el|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1200,variableFilter="Time|asm_ctrl.motor.tau_el|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 369.6 MB, free: 11.01 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.027e-05/2.199e-05, allocations: 2.312 kB / 369.6 MB, free: 11.01 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol): time 0.01183/0.01186, allocations: 7.311 MB / 377 MB, free: 3.66 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.007603/0.01946, allocations: 5.107 MB / 382.1 MB, free: 14.54 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001061/0.02052, allocations: 51.62 kB / 382.1 MB, free: 14.48 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02051/0.04103, allocations: 6.471 MB / 388.6 MB, free: 8 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004968/0.04599, allocations: 0.6057 MB / 389.2 MB, free: 7.391 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001448/0.04744, allocations: 0.6002 MB / 389.8 MB, free: 6.789 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.01006/0.0575, allocations: 2.783 MB / 392.6 MB, free: 4 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001849/0.05935, allocations: 1.206 MB / 393.8 MB, free: 2.773 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00466/0.06401, allocations: 0.9977 MB / 394.8 MB, free: 1.773 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001139/0.06515, allocations: 0.8024 MB / 395.6 MB, free: 0.9688 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003658/0.06552, allocations: 148 kB / 395.7 MB, free: 0.8242 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005676/0.06608, allocations: 263.8 kB / 396 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003487/0.06957, allocations: 0.5571 MB / 396.5 MB, free: 8 kB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005991/0.07017, allocations: 495 kB / 397 MB, free: 15.52 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001687/0.07186, allocations: 1.269 MB / 398.3 MB, free: 14.25 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.07186, allocations: 0 / 398.3 MB, free: 14.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.07186, allocations: 0 / 398.3 MB, free: 14.25 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.213e-05/0.07189, allocations: 0 / 398.3 MB, free: 14.25 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 231 * Number of variables: 231 Notification: Performance of Generate backend data structure: time 0.006214/0.0781, allocations: 1.798 MB / 400.1 MB, free: 12.4 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.07814, allocations: 11.98 kB / 400.1 MB, free: 12.39 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003663/0.08181, allocations: 244 kB / 400.3 MB, free: 12.15 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001729/0.08354, allocations: 1.06 MB / 401.4 MB, free: 11.06 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.062e-05/0.08359, allocations: 66 kB / 401.5 MB, free: 11 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001536/0.08374, allocations: 99.91 kB / 401.6 MB, free: 10.9 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003811/0.08755, allocations: 0.9521 MB / 402.5 MB, free: 9.852 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.322e-05/0.08757, allocations: 7.891 kB / 402.5 MB, free: 9.844 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.455e-05/0.08764, allocations: 32 kB / 402.6 MB, free: 9.812 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001772/0.08782, allocations: 89.94 kB / 402.6 MB, free: 9.727 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007455/0.08856, allocations: 479.5 kB / 403.1 MB, free: 9.254 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004587/0.09315, allocations: 4.329 MB / 407.4 MB, free: 4.777 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007011/0.09385, allocations: 472.9 kB / 407.9 MB, free: 4.281 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003604/0.09421, allocations: 237 kB / 408.1 MB, free: 4.039 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.034e-05/0.09427, allocations: 20.66 kB / 408.2 MB, free: 4.016 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004975/0.09477, allocations: 398.8 kB / 408.5 MB, free: 3.602 MB / 378.7 MB Notification: Performance of pre-optimization done (n=79): time 3.867e-06/0.09477, allocations: 0 / 408.5 MB, free: 3.602 MB / 378.7 MB Notification: Performance of matching and sorting (n=81): time 0.00468/0.09945, allocations: 2.517 MB / 411.1 MB, free: 1.023 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.834e-05/0.09954, allocations: 196.6 kB / 411.2 MB, free: 0.7891 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007383/0.1003, allocations: 0.7531 MB / 412 MB, free: 24 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.048e-05/0.1004, allocations: 45.69 kB / 412 MB, free: 15.97 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003205/0.1007, allocations: 0.5813 MB / 412.6 MB, free: 15.38 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002448/0.1009, allocations: 313.3 kB / 412.9 MB, free: 15.07 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000219/0.1012, allocations: 188.2 kB / 413.1 MB, free: 14.88 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.1013, allocations: 0.516 MB / 413.6 MB, free: 14.36 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003593/0.1017, allocations: 191.6 kB / 413.8 MB, free: 14.17 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006013/0.1023, allocations: 0.6039 MB / 414.4 MB, free: 13.41 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008417/0.1031, allocations: 0.7429 MB / 415.2 MB, free: 12.54 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.1031, allocations: 4 kB / 415.2 MB, free: 12.54 MB / 394.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.00448/0.1076, allocations: 2.053 MB / 417.2 MB, free: 10.46 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.633e-05/0.1076, allocations: 9.203 kB / 417.2 MB, free: 10.46 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/0.1076, allocations: 8 kB / 417.2 MB, free: 10.45 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007747/0.1154, allocations: 3.003 MB / 420.2 MB, free: 7.434 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004531/0.1158, allocations: 147.7 kB / 420.4 MB, free: 7.289 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01087/0.1267, allocations: 7.778 MB / 428.2 MB, free: 15.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006588/0.1274, allocations: 51.95 kB / 428.2 MB, free: 15.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.665e-05/0.1274, allocations: 47.98 kB / 428.3 MB, free: 15.17 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006096/0.128, allocations: 328.8 kB / 428.6 MB, free: 14.84 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005401/0.1286, allocations: 0.5961 MB / 429.2 MB, free: 14.09 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008789/0.1295, allocations: 0.7352 MB / 429.9 MB, free: 13.23 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.054e-05/0.1295, allocations: 4 kB / 429.9 MB, free: 13.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.004427/0.1339, allocations: 2.026 MB / 431.9 MB, free: 11.19 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.1339, allocations: 8 kB / 432 MB, free: 11.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.1339, allocations: 8 kB / 432 MB, free: 11.17 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007536/0.1415, allocations: 2.98 MB / 434.9 MB, free: 8.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005002/0.142, allocations: 143.7 kB / 435.1 MB, free: 8.039 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01082/0.1528, allocations: 7.718 MB / 442.8 MB, free: 88 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006356/0.1534, allocations: 55.95 kB / 442.9 MB, free: 32 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.1914/0.3448, allocations: 44.38 kB / 442.9 MB, free: 91.95 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,$whenCondition1,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(9,40)} Notification: Performance of prepare postOptimizeDAE: time 0.0004751/0.3453, allocations: 317.6 kB / 443.2 MB, free: 91.68 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000258/0.3456, allocations: 128.6 kB / 443.3 MB, free: 91.68 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0015/0.3471, allocations: 0.9364 MB / 444.3 MB, free: 91.58 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.3471, allocations: 12.31 kB / 444.3 MB, free: 91.58 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.3471, allocations: 3.219 kB / 444.3 MB, free: 91.58 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.126e-06/0.3471, allocations: 3.281 kB / 444.3 MB, free: 91.58 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002522/0.3496, allocations: 1.817 MB / 446.1 MB, free: 91.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.3496, allocations: 0 / 446.1 MB, free: 91.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00052/0.3502, allocations: 164.4 kB / 446.3 MB, free: 91.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009725/0.3511, allocations: 335 kB / 446.6 MB, free: 91.17 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001958/0.3513, allocations: 25.33 kB / 446.6 MB, free: 91.17 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003339/0.3547, allocations: 7.376 MB / 454 MB, free: 84.32 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.3547, allocations: 6.312 kB / 454 MB, free: 84.32 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001867/0.3565, allocations: 1.274 MB / 455.3 MB, free: 84 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003287/0.3569, allocations: 184.9 kB / 455.5 MB, free: 84 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.079e-05/0.3569, allocations: 24.81 kB / 455.5 MB, free: 84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000301/0.3572, allocations: 42.69 kB / 455.5 MB, free: 84 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001624/0.3574, allocations: 70.53 kB / 455.6 MB, free: 84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.412e-05/0.3574, allocations: 32.69 kB / 455.6 MB, free: 84 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003998/0.3578, allocations: 471.9 kB / 456.1 MB, free: 83.86 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3578, allocations: 0 / 456.1 MB, free: 83.86 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001644/0.3595, allocations: 0.5702 MB / 456.7 MB, free: 83.86 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (asm_ctrl.rotor.phi,asm_ctrl.rotor.w,asm_ctrl.motor.i[3],asm_ctrl.motor.psi_s[1],asm_ctrl.motor.psi_s[2],asm_ctrl.motor.psi_rd[1],asm_ctrl.motor.psi_rd[2],asm_ctrl.motor.psi_rq[1],asm_ctrl.motor.psi_rq[2],asm_ctrl.motor.phiRotorflux,tabLoad.s,PI_i_q.I.y) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,2,100.0%), (1,3,100.0%), (2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001035/0.3605, allocations: 486.3 kB / 457.1 MB, free: 83.75 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003516/0.364, allocations: 2.589 MB / 459.7 MB, free: 82.89 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.364, allocations: 0 / 459.7 MB, free: 82.89 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008712/0.3649, allocations: 1.11 MB / 460.8 MB, free: 82.19 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008531/0.3658, allocations: 236.2 kB / 461.1 MB, free: 82.18 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00377/0.3695, allocations: 2.392 MB / 463.4 MB, free: 81.14 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003545/0.3699, allocations: 337.7 kB / 463.8 MB, free: 81.05 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005613/0.3705, allocations: 214.9 kB / 464 MB, free: 81 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001939/0.3706, allocations: 83.31 kB / 464.1 MB, free: 81 MB / 410.7 MB Notification: Performance of SimCode: time 1.793e-06/0.3707, allocations: 0 / 464.1 MB, free: 81 MB / 410.7 MB Notification: Performance of Templates: time 0.04033/0.411, allocations: 31.99 MB / 496.1 MB, free: 74.68 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe 2>&1) [Timeout 240] [Calling os._exit(0), Time elapsed: 4.590271424036473]