Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.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.ASM,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM",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.001033/0.001033, allocations: 91.48 kB / 16.3 MB, free: 6.457 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.001177/0.001177, allocations: 180.6 kB / 17.2 MB, free: 6.34 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.262/1.262, allocations: 223.2 MB / 241.1 MB, free: 5.469 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2967/0.2967, allocations: 38.07 MB / 330.3 MB, free: 14.26 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000326/0.000326, allocations: 11.98 kB / 400.1 MB, free: 9.203 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2649/0.2652, allocations: 59.15 MB / 459.2 MB, free: 30.06 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.007071/0.2723, allocations: 7.379 MB / 466.6 MB, free: 24.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008629/0.281, allocations: 5.225 MB / 471.8 MB, free: 21.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001126/0.2821, allocations: 47.69 kB / 471.9 MB, free: 21.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005346/0.2875, allocations: 1.911 MB / 473.8 MB, free: 20.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002263/0.2898, allocations: 0.5456 MB / 474.3 MB, free: 20.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001353/0.2911, allocations: 457.7 kB / 474.8 MB, free: 20.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001472/0.2926, allocations: 0.9501 MB / 475.7 MB, free: 19.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00161/0.2942, allocations: 1.243 MB / 477 MB, free: 19.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008418/0.2951, allocations: 0.5494 MB / 477.5 MB, free: 18.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00077/0.2959, allocations: 0.6459 MB / 478.2 MB, free: 18.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001378/0.296, allocations: 61.06 kB / 478.2 MB, free: 18.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009562/0.297, allocations: 0.526 MB / 478.7 MB, free: 18.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004322/0.2974, allocations: 0.5282 MB / 479.3 MB, free: 17.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002595/0.2977, allocations: 276.3 kB / 479.5 MB, free: 17.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001345/0.299, allocations: 1.686 MB / 481.2 MB, free: 16.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.364e-06/0.2991, allocations: 0 / 481.2 MB, free: 16.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2991, allocations: 4 kB / 481.2 MB, free: 16.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.369e-05/0.2991, allocations: 0 / 481.2 MB, free: 16.63 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: 293 * Number of variables: 293 Notification: Performance of Generate backend data structure: time 0.003164/0.3023, allocations: 1.687 MB / 482.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.3023, allocations: 9.469 kB / 482.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002029/0.3025, allocations: 182.4 kB / 483.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006038/0.3031, allocations: 183.3 kB / 483.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001718/0.3049, allocations: 0.978 MB / 484.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001443/0.305, allocations: 185.5 kB / 484.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001982/0.3052, allocations: 119.3 kB / 484.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002606/0.3078, allocations: 1.866 MB / 486.4 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.923e-05/0.3079, allocations: 7.938 kB / 486.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001141/0.308, allocations: 36 kB / 486.5 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002429/0.3082, allocations: 133.8 kB / 486.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002219/0.3105, allocations: 1.62 MB / 488.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00669/0.3172, allocations: 5.763 MB / 494 MB, free: 4.801 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002047/0.3193, allocations: 1.242 MB / 495.2 MB, free: 3.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.31e-05/0.3193, allocations: 17.05 kB / 495.2 MB, free: 3.504 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001435/0.3208, allocations: 0.9962 MB / 496.2 MB, free: 2.492 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 2.796e-06/0.3208, allocations: 0 / 496.2 MB, free: 2.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=119): time 0.009446/0.3302, allocations: 5.232 MB / 0.4897 GB, free: 13.03 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.961e-05/0.3304, allocations: 123.8 kB / 0.4898 GB, free: 12.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001036/0.3314, allocations: 0.7742 MB / 0.4906 GB, free: 12.1 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001098/0.3315, allocations: 61.69 kB / 0.4906 GB, free: 12.03 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004173/0.332, allocations: 0.5037 MB / 0.4911 GB, free: 11.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003534/0.3323, allocations: 406.3 kB / 0.4915 GB, free: 11.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.865e-05/0.3324, allocations: 27.94 kB / 0.4916 GB, free: 11.09 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002101/0.3326, allocations: 418.7 kB / 0.492 GB, free: 10.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000959/0.3336, allocations: 0.6708 MB / 0.4926 GB, free: 10 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001091/0.3347, allocations: 0.9451 MB / 0.4935 GB, free: 8.957 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001097/0.3358, allocations: 0.8353 MB / 0.4943 GB, free: 8.117 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.199e-06/0.3358, allocations: 4 kB / 0.4944 GB, free: 8.113 MB / 366.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.00366/0.3395, allocations: 2.388 MB / 0.4967 GB, free: 5.672 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.715e-05/0.3396, allocations: 65.67 kB / 0.4967 GB, free: 5.602 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.595e-05/0.3396, allocations: 8 kB / 0.4968 GB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001246/0.3408, allocations: 438.3 kB / 0.4972 GB, free: 5.156 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007521/0.3416, allocations: 211.7 kB / 0.4974 GB, free: 4.949 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00813/0.3497, allocations: 7.244 MB / 0.5044 GB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009252/0.3507, allocations: 104.1 kB / 0.5045 GB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001378/0.3508, allocations: 91.81 kB / 0.5046 GB, free: 13.11 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 29 (system.initime,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[6],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.t0[1],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 113 * Array equations: 3 * Algorithm blocks: 7 * 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 {4 21} Notification: Performance of prepare postOptimizeDAE: time 0.0007222/0.3516, allocations: 463.5 kB / 0.5051 GB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001994/0.3518, allocations: 110.7 kB / 0.5052 GB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003727/0.3555, allocations: 2.108 MB / 0.5072 GB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.358e-05/0.3556, allocations: 24 kB / 0.5073 GB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.3556, allocations: 3.953 kB / 0.5073 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.257e-05/0.3556, allocations: 7.969 kB / 0.5073 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005908/0.3615, allocations: 3.562 MB / 0.5108 GB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.3615, allocations: 4.062 kB / 0.5108 GB, free: 6.617 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008548/0.3624, allocations: 167.8 kB / 0.5109 GB, free: 6.453 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005284/0.3629, allocations: 179.2 kB / 0.5111 GB, free: 6.266 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.131e-05/0.363, allocations: 31.95 kB / 0.5111 GB, free: 6.234 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004444/0.3675, allocations: 5.886 MB / 0.5169 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3675, allocations: 4.062 kB / 0.5169 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00527/0.3728, allocations: 3.081 MB / 0.5199 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007178/0.3735, allocations: 315.6 kB / 0.5202 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002366/0.3738, allocations: 87.95 kB / 0.5203 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008843/0.3747, allocations: 135.8 kB / 0.5204 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000187/0.3749, allocations: 76.83 kB / 0.5205 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.875e-05/0.3749, allocations: 39.97 kB / 0.5205 GB, free: 11.96 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007178/0.3757, allocations: 0.5302 MB / 0.521 GB, free: 11.43 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3757, allocations: 0 / 0.521 GB, free: 11.43 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001394/0.3771, allocations: 364.1 kB / 0.5214 GB, free: 11.07 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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: 17 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3],system.initime) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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%) 1,(1,100.0%) 3,(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.006549/0.3836, allocations: 4.247 MB / 0.5255 GB, free: 6.859 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004566/0.3882, allocations: 3.124 MB / 0.5286 GB, free: 3.613 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.3883, allocations: 0 / 0.5286 GB, free: 3.613 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002256/0.3905, allocations: 1.357 MB / 0.5299 GB, free: 2.207 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/0.3918, allocations: 211.1 kB / 0.5301 GB, free: 1.996 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0181/0.4099, allocations: 14.77 MB / 0.5445 GB, free: 2.816 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009217/0.4109, allocations: 1.308 MB / 0.5458 GB, free: 1.477 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008836/0.4118, allocations: 292.6 kB / 0.5461 GB, free: 1.188 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005879/0.4124, allocations: 443.2 kB / 0.5465 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4124, allocations: 4 kB / 0.5465 GB, free: 0.75 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04996/0.4623, allocations: 31.23 MB / 0.577 GB, free: 1.789 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002052/0.4626, allocations: 250.5 kB / 0.5772 GB, free: 1.453 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.31/2.772, allocations: 0 / 0.5772 GB, free: 1.453 MB / 446.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_res.mat does not exist to compare? outputFormat=mat