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.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/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2400,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=2400,variableFilter="Time|asm_ctrl.motor.tau_el|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000698/0.000698, allocations: 91.84 kB / 16.65 MB, free: 6.266 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.0007378/0.0007378, allocations: 177.5 kB / 17.56 MB, free: 5.879 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.197/1.197, allocations: 223.3 MB / 241.6 MB, free: 88 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1607/0.1607, allocations: 38.09 MB / 330.8 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002801/0.0002801, allocations: 8.594 kB / 400.7 MB, free: 34.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09086/0.09116, allocations: 59.17 MB / 459.9 MB, free: 7.059 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol): time 0.008023/0.09922, allocations: 7.877 MB / 467.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007894/0.1071, allocations: 5.42 MB / 473.2 MB, free: 9.703 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001064/0.1082, allocations: 47.69 kB / 473.2 MB, free: 9.656 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009244/0.1175, allocations: 5.466 MB / 478.7 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001384/0.1189, allocations: 0.5017 MB / 479.2 MB, free: 3.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00127/0.1202, allocations: 0.5209 MB / 479.7 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00365/0.1238, allocations: 3.232 MB / 483 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001446/0.1253, allocations: 1.172 MB / 484.1 MB, free: 14.69 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008992/0.1262, allocations: 0.5677 MB / 484.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001003/0.1272, allocations: 0.7977 MB / 485.5 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001201/0.1274, allocations: 56 kB / 485.5 MB, free: 13.26 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003343/0.1277, allocations: 131.9 kB / 485.7 MB, free: 13.13 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003913/0.1281, allocations: 434.7 kB / 486.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005319/0.1286, allocations: 0.6195 MB / 486.7 MB, free: 12.08 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001485/0.1301, allocations: 1.767 MB / 488.5 MB, free: 10.3 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.1301, allocations: 0 / 488.5 MB, free: 10.3 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1302, allocations: 0 / 488.5 MB, free: 10.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.582e-05/0.1302, allocations: 0 / 488.5 MB, free: 10.3 MB / 366.1 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.003223/0.1334, allocations: 1.46 MB / 489.9 MB, free: 8.793 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.1335, allocations: 8.031 kB / 490 MB, free: 8.785 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004405/0.1339, allocations: 159.2 kB / 490.1 MB, free: 8.629 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001915/0.1358, allocations: 1.058 MB / 491.2 MB, free: 7.527 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.252e-05/0.1359, allocations: 69.98 kB / 491.2 MB, free: 7.457 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001643/0.1361, allocations: 87.91 kB / 491.3 MB, free: 7.371 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002004/0.1381, allocations: 1.335 MB / 492.7 MB, free: 5.984 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.85e-05/0.1381, allocations: 4 kB / 492.7 MB, free: 5.98 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001001/0.1382, allocations: 32 kB / 492.7 MB, free: 5.949 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003139/0.1386, allocations: 97.91 kB / 492.8 MB, free: 5.852 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001796/0.1404, allocations: 1.148 MB / 493.9 MB, free: 4.707 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006651/0.147, allocations: 4.966 MB / 498.9 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001321/0.1484, allocations: 0.9491 MB / 499.9 MB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007536/0.1491, allocations: 0.5355 MB / 0.4887 GB, free: 14.03 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.431e-05/0.1492, allocations: 12.64 kB / 0.4887 GB, free: 14.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008865/0.1501, allocations: 0.6294 MB / 0.4893 GB, free: 13.37 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 2.063e-06/0.1501, allocations: 0 / 0.4893 GB, free: 13.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=81): time 0.008179/0.1583, allocations: 4.184 MB / 0.4934 GB, free: 9.02 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.53e-05/0.1584, allocations: 166.9 kB / 0.4935 GB, free: 8.82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009409/0.1594, allocations: 0.8411 MB / 0.4944 GB, free: 7.953 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.446e-05/0.1594, allocations: 42.91 kB / 0.4944 GB, free: 7.906 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003289/0.1598, allocations: 0.5267 MB / 0.4949 GB, free: 7.371 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002126/0.16, allocations: 287.8 kB / 0.4952 GB, free: 7.086 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001155/0.1601, allocations: 85.67 kB / 0.4953 GB, free: 6.996 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.1602, allocations: 341.9 kB / 0.4956 GB, free: 6.656 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007036/0.1609, allocations: 485.7 kB / 0.4961 GB, free: 6.184 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008509/0.1618, allocations: 0.7247 MB / 0.4968 GB, free: 5.363 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001595/0.1634, allocations: 1.226 MB / 0.498 GB, free: 4.043 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1634, allocations: 0 / 0.498 GB, free: 4.043 MB / 382.1 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.008626/0.172, allocations: 2.95 MB / 0.5008 GB, free: 1.055 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001809/0.1722, allocations: 290.2 kB / 0.5011 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/0.1723, allocations: 7.938 kB / 0.5011 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1823/0.3545, allocations: 1.9 MB / 0.503 GB, free: 54.99 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000618/0.3552, allocations: 145.9 kB / 0.5031 GB, free: 54.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01797/0.3732, allocations: 11.55 MB / 0.5144 GB, free: 50 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008358/0.374, allocations: 64.41 kB / 0.5145 GB, free: 49.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.705e-05/0.3741, allocations: 47.53 kB / 0.5145 GB, free: 49.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.468e-06/0.3741, allocations: 6.969 kB / 0.5145 GB, free: 49.98 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00817/0.3823, allocations: 2.718 MB / 0.5172 GB, free: 49.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.563e-05/0.3824, allocations: 6.906 kB / 0.5172 GB, free: 49.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00786/0.3902, allocations: 1.842 MB / 0.519 GB, free: 48.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005943/0.3909, allocations: 139.7 kB / 0.5191 GB, free: 48.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01481/0.4057, allocations: 11.31 MB / 0.5301 GB, free: 41.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007582/0.4065, allocations: 59.95 kB / 0.5302 GB, free: 41.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.037e-05/0.4066, allocations: 43.98 kB / 0.5302 GB, free: 41.2 MB / 382.1 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.0005724/0.4071, allocations: 446.9 kB / 0.5307 GB, free: 40.76 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001253/0.4073, allocations: 103.5 kB / 0.5308 GB, free: 40.69 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002519/0.4098, allocations: 1.656 MB / 0.5324 GB, free: 38.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.779e-06/0.4098, allocations: 11.94 kB / 0.5324 GB, free: 38.97 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.094e-06/0.4098, allocations: 4 kB / 0.5324 GB, free: 38.97 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/0.4098, allocations: 11.12 kB / 0.5324 GB, free: 38.96 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0037/0.4136, allocations: 2.909 MB / 0.5353 GB, free: 35.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.4136, allocations: 4 kB / 0.5353 GB, free: 35.97 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008635/0.4144, allocations: 167.8 kB / 0.5354 GB, free: 35.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001163/0.4156, allocations: 403 kB / 0.5358 GB, free: 35.4 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.722e-05/0.4157, allocations: 23.98 kB / 0.5358 GB, free: 35.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003894/0.4196, allocations: 6.291 MB / 0.542 GB, free: 28.56 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.4196, allocations: 0 / 0.542 GB, free: 28.56 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002994/0.4226, allocations: 2.314 MB / 0.5442 GB, free: 26.17 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000325/0.423, allocations: 274 kB / 0.5445 GB, free: 25.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001193/0.4231, allocations: 27.98 kB / 0.5445 GB, free: 25.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005627/0.4237, allocations: 39.97 kB / 0.5446 GB, free: 25.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001565/0.4238, allocations: 72.89 kB / 0.5446 GB, free: 25.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.978e-05/0.4239, allocations: 31.98 kB / 0.5447 GB, free: 25.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005729/0.4245, allocations: 0.5776 MB / 0.5452 GB, free: 25.13 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4245, allocations: 3.938 kB / 0.5452 GB, free: 25.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001621/0.4261, allocations: 0.5526 MB / 0.5458 GB, free: 24.57 MB / 382.1 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.0008011/0.4269, allocations: 441.2 kB / 0.5462 GB, free: 24.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005086/0.432, allocations: 3.205 MB / 0.5493 GB, free: 21.06 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.432, allocations: 3.938 kB / 0.5493 GB, free: 21.05 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001367/0.4334, allocations: 1.139 MB / 0.5504 GB, free: 19.87 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001211/0.4346, allocations: 256.5 kB / 0.5507 GB, free: 19.61 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003387/0.438, allocations: 3.602 MB / 0.5542 GB, free: 15.99 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005436/0.4386, allocations: 1.241 MB / 0.5554 GB, free: 14.72 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007511/0.4393, allocations: 248.2 kB / 0.5556 GB, free: 14.47 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002293/0.4396, allocations: 83.41 kB / 0.5557 GB, free: 14.39 MB / 382.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4396, allocations: 0 / 0.5557 GB, free: 14.39 MB / 382.1 MB Notification: Performance of Templates: time 0.04028/0.4799, allocations: 30.66 MB / 0.5857 GB, free: 15.89 MB / 414.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.makefile Environment - environmentSimulation: (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=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches