Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMav,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMav,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008085/0.0008086, allocations: 91.53 kB / 16.3 MB, free: 6.133 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.0008346/0.0008347, allocations: 178.4 kB / 17.2 MB, free: 6.012 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.218/1.218, allocations: 223.2 MB / 241.1 MB, free: 14.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1595/0.1595, allocations: 38.08 MB / 330.3 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002782/0.0002782, allocations: 8.531 kB / 400.1 MB, free: 34.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09097/0.09126, allocations: 59.18 MB / 459.2 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.007119/0.09841, allocations: 7.11 MB / 466.3 MB, free: 200 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00721/0.1057, allocations: 5.084 MB / 471.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008002/0.1065, allocations: 51.69 kB / 471.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004584/0.1111, allocations: 1.926 MB / 473.4 MB, free: 9.113 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001365/0.1125, allocations: 454.5 kB / 473.8 MB, free: 8.668 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001151/0.1136, allocations: 439.1 kB / 474.3 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008728/0.1145, allocations: 0.7493 MB / 475 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001236/0.1158, allocations: 0.971 MB / 476 MB, free: 6.477 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005939/0.1164, allocations: 446.4 kB / 476.4 MB, free: 6.039 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005923/0.117, allocations: 0.4944 MB / 476.9 MB, free: 5.543 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.78e-05/0.1171, allocations: 47.94 kB / 477 MB, free: 5.496 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000356/0.1174, allocations: 147.8 kB / 477.1 MB, free: 5.352 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003927/0.1178, allocations: 411 kB / 477.5 MB, free: 4.949 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001962/0.118, allocations: 221.1 kB / 477.7 MB, free: 4.727 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009919/0.119, allocations: 1.188 MB / 478.9 MB, free: 3.535 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.504e-06/0.119, allocations: 0 / 478.9 MB, free: 3.535 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1191, allocations: 4 kB / 478.9 MB, free: 3.531 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.283e-05/0.1191, allocations: 0 / 478.9 MB, free: 3.531 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 220 * Number of variables: 220 Notification: Performance of Generate backend data structure: time 0.002461/0.1215, allocations: 1.254 MB / 480.2 MB, free: 2.223 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.1216, allocations: 8.031 kB / 480.2 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001778/0.1218, allocations: 151.3 kB / 480.3 MB, free: 2.059 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005789/0.1224, allocations: 150.5 kB / 480.5 MB, free: 1.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001589/0.124, allocations: 0.8472 MB / 481.3 MB, free: 1.023 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.27e-05/0.124, allocations: 65.98 kB / 481.4 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000135/0.1242, allocations: 91.94 kB / 481.5 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001604/0.1258, allocations: 1.216 MB / 482.7 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.02e-05/0.1258, allocations: 11.84 kB / 482.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.717e-05/0.1259, allocations: 39.98 kB / 482.8 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000206/0.1261, allocations: 89.94 kB / 482.8 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001455/0.1276, allocations: 0.9953 MB / 483.8 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005891/0.1335, allocations: 4.932 MB / 488.8 MB, free: 9.305 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000844/0.1344, allocations: 0.6535 MB / 489.4 MB, free: 8.609 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.261e-05/0.1344, allocations: 8.625 kB / 489.4 MB, free: 8.602 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006046/0.135, allocations: 449.7 kB / 489.9 MB, free: 8.148 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 1.943e-06/0.1351, allocations: 0 / 489.9 MB, free: 8.148 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004307/0.1394, allocations: 2.9 MB / 492.8 MB, free: 5.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.318e-05/0.1394, allocations: 111.4 kB / 492.9 MB, free: 4.938 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007937/0.1402, allocations: 0.7467 MB / 493.6 MB, free: 4.18 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.905e-05/0.1403, allocations: 41.7 kB / 493.7 MB, free: 4.133 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003183/0.1406, allocations: 0.4909 MB / 494.2 MB, free: 3.633 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001644/0.1408, allocations: 248.6 kB / 494.4 MB, free: 3.387 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.778e-05/0.1409, allocations: 20 kB / 494.4 MB, free: 3.367 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.141, allocations: 398.7 kB / 494.8 MB, free: 2.969 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005122/0.1415, allocations: 369.8 kB / 495.2 MB, free: 2.605 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007095/0.1423, allocations: 0.6422 MB / 495.8 MB, free: 1.836 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006667/0.1429, allocations: 483 kB / 496.3 MB, free: 1.363 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.129e-06/0.1429, allocations: 4 kB / 496.3 MB, free: 1.359 MB / 366.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002768/0.1457, allocations: 1.718 MB / 498 MB, free: 15.58 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.1457, allocations: 8 kB / 498 MB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.1458, allocations: 12 kB / 498 MB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001407/0.1472, allocations: 0.5064 MB / 498.5 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005623/0.1478, allocations: 155.7 kB / 498.7 MB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009152/0.1569, allocations: 8.074 MB / 0.4949 GB, free: 6.422 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007105/0.1577, allocations: 47.97 kB / 0.4949 GB, free: 6.375 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.027e-05/0.1577, allocations: 43.98 kB / 0.495 GB, free: 6.332 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {6 23} Notification: Performance of prepare postOptimizeDAE: time 0.0005431/0.1583, allocations: 353.7 kB / 0.4953 GB, free: 5.977 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/0.1584, allocations: 82.97 kB / 0.4954 GB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001699/0.1601, allocations: 1.217 MB / 0.4966 GB, free: 4.602 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.1601, allocations: 8 kB / 0.4966 GB, free: 4.594 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.1601, allocations: 4 kB / 0.4966 GB, free: 4.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.1601, allocations: 3.984 kB / 0.4966 GB, free: 4.586 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003107/0.1633, allocations: 2.207 MB / 0.4987 GB, free: 2.242 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.1633, allocations: 3.938 kB / 0.4987 GB, free: 2.238 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006403/0.1639, allocations: 123.9 kB / 0.4989 GB, free: 2.117 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005138/0.1645, allocations: 179.2 kB / 0.499 GB, free: 1.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.589e-05/0.1645, allocations: 27.97 kB / 0.4991 GB, free: 1.902 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2038/0.3684, allocations: 5.879 MB / 0.5048 GB, free: 50.92 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.3684, allocations: 2.734 kB / 0.5048 GB, free: 50.92 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002552/0.371, allocations: 1.686 MB / 0.5065 GB, free: 50.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004142/0.3714, allocations: 215.7 kB / 0.5067 GB, free: 50.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001118/0.3715, allocations: 21.22 kB / 0.5067 GB, free: 50.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004283/0.372, allocations: 31.8 kB / 0.5067 GB, free: 50.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001592/0.3721, allocations: 51.77 kB / 0.5068 GB, free: 50.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.444e-05/0.3722, allocations: 21.2 kB / 0.5068 GB, free: 50.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007201/0.3729, allocations: 0.5075 MB / 0.5073 GB, free: 50.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3729, allocations: 1.312 kB / 0.5073 GB, free: 50.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001118/0.3741, allocations: 270.5 kB / 0.5075 GB, free: 50.15 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (power.pav[1],power.pav[2],power.pav[3],asm.rotor.phi,asm.rotor.w,asm.motor.i[3],asm.motor.psi_s[1],asm.motor.psi_s[2],asm.motor.psi_rd[1],asm.motor.psi_rd[2],asm.motor.psi_rq[1],asm.motor.psi_rq[2],tabLoad.s) * 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 (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002993/0.3771, allocations: 2.886 MB / 0.5104 GB, free: 48.63 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0023/0.3794, allocations: 1.44 MB / 0.5118 GB, free: 47.92 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3794, allocations: 1.156 kB / 0.5118 GB, free: 47.92 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001158/0.3806, allocations: 0.8843 MB / 0.5126 GB, free: 47.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008436/0.3814, allocations: 197.1 kB / 0.5128 GB, free: 47.28 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01168/0.3931, allocations: 13.52 MB / 0.526 GB, free: 37.29 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008147/0.394, allocations: 1.169 MB / 0.5272 GB, free: 36.53 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007711/0.3947, allocations: 229.4 kB / 0.5274 GB, free: 36.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004121/0.3952, allocations: 359.6 kB / 0.5277 GB, free: 36.21 MB / 382.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3952, allocations: 0 / 0.5277 GB, free: 36.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03758/0.4328, allocations: 22.58 MB / 0.5498 GB, free: 19.83 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001494/0.4329, allocations: 252.7 kB / 0.55 GB, free: 19.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.125/2.558, allocations: 0 / 0.55 GB, free: 19.5 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_res.mat does not exist to compare? outputFormat=mat