Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.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_ctrlAv,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_ctrlAv",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_ctrlAv",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.0009222/0.0009219, allocations: 93.25 kB / 16.3 MB, free: 6.453 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.0009341/0.0009342, allocations: 183.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.236/1.236, allocations: 223.2 MB / 241.1 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2552/0.2552, allocations: 38.07 MB / 330.3 MB, free: 14.22 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002776/0.0002776, allocations: 8 kB / 400.1 MB, free: 9.199 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2395/0.2398, allocations: 59.15 MB / 459.2 MB, free: 30.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.006311/0.2461, allocations: 7.222 MB / 466.4 MB, free: 25.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00633/0.2525, allocations: 4.758 MB / 471.2 MB, free: 21.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007456/0.2532, allocations: 56.34 kB / 471.3 MB, free: 21.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004013/0.2573, allocations: 1.761 MB / 473 MB, free: 21.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001072/0.2583, allocations: 431.9 kB / 473.4 MB, free: 20.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001041/0.2594, allocations: 419.9 kB / 473.8 MB, free: 20.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009876/0.2604, allocations: 0.9061 MB / 474.8 MB, free: 20.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001238/0.2616, allocations: 1.021 MB / 475.8 MB, free: 19.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005527/0.2622, allocations: 480.7 kB / 476.2 MB, free: 19.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006196/0.2628, allocations: 0.5415 MB / 476.8 MB, free: 19.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001041/0.2629, allocations: 49.5 kB / 476.8 MB, free: 19.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001892/0.2631, allocations: 53.62 kB / 476.9 MB, free: 19.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002699/0.2634, allocations: 353.3 kB / 477.2 MB, free: 19.08 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001721/0.2636, allocations: 233.5 kB / 477.5 MB, free: 18.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007906/0.2644, allocations: 1.239 MB / 478.7 MB, free: 18.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.255e-06/0.2644, allocations: 0 / 478.7 MB, free: 18.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2644, allocations: 3.938 kB / 478.7 MB, free: 18.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.206e-05/0.2644, allocations: 1.156 kB / 478.7 MB, free: 18.03 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.00222/0.2667, allocations: 1.242 MB / 479.9 MB, free: 17.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.2667, allocations: 9.156 kB / 480 MB, free: 17.09 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001498/0.2669, allocations: 148.2 kB / 480.1 MB, free: 16.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003531/0.2672, allocations: 128 kB / 480.2 MB, free: 16.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001463/0.2687, allocations: 0.8546 MB / 481.1 MB, free: 16.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.224e-05/0.2687, allocations: 58.81 kB / 481.1 MB, free: 16.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000138/0.2689, allocations: 94.52 kB / 481.2 MB, free: 16.19 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001605/0.2705, allocations: 1.219 MB / 482.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.831e-05/0.2705, allocations: 3.281 kB / 482.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.207e-05/0.2706, allocations: 35.72 kB / 482.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002035/0.2708, allocations: 74.52 kB / 482.6 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001432/0.2723, allocations: 1.01 MB / 483.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004737/0.277, allocations: 4.45 MB / 488 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009972/0.278, allocations: 0.8934 MB / 488.9 MB, free: 9.918 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.841e-05/0.2781, allocations: 20.55 kB / 488.9 MB, free: 9.898 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.891e-05/0.2781, allocations: 43.12 kB / 489 MB, free: 9.848 MB / 350.1 MB Notification: Performance of pre-optimization done (n=70): time 2.074e-06/0.2781, allocations: 0 / 489 MB, free: 9.848 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.005058/0.2832, allocations: 3.507 MB / 492.5 MB, free: 6.141 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.621e-05/0.2832, allocations: 137.1 kB / 492.6 MB, free: 5.977 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005467/0.2838, allocations: 0.6804 MB / 493.3 MB, free: 5.285 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.716e-05/0.2838, allocations: 41.7 kB / 493.3 MB, free: 5.238 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001978/0.2841, allocations: 475.3 kB / 493.8 MB, free: 4.766 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001329/0.2842, allocations: 260.3 kB / 494.1 MB, free: 4.508 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.987e-05/0.2842, allocations: 16 kB / 494.1 MB, free: 4.492 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.346e-05/0.2843, allocations: 341.9 kB / 494.4 MB, free: 4.152 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004721/0.2848, allocations: 377.8 kB / 494.8 MB, free: 3.785 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000553/0.2853, allocations: 0.5822 MB / 495.4 MB, free: 3.105 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005397/0.2907, allocations: 1.523 MB / 496.9 MB, free: 1.562 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.2908, allocations: 0 / 496.9 MB, free: 1.562 MB / 350.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.00485/0.2956, allocations: 2.143 MB / 499 MB, free: 15.36 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008511/0.2965, allocations: 2.531 MB / 0.4898 GB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.2965, allocations: 8 kB / 0.4898 GB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004459/0.301, allocations: 1.067 MB / 0.4908 GB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004813/0.3015, allocations: 127.8 kB / 0.491 GB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01505/0.3165, allocations: 11.01 MB / 0.5017 GB, free: 8 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007388/0.3173, allocations: 43.97 kB / 0.5018 GB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.839e-05/0.3174, allocations: 39.98 kB / 0.5018 GB, free: 15.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.246e-06/0.3174, allocations: 8.219 kB / 0.5018 GB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004864/0.3223, allocations: 1.932 MB / 0.5037 GB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.3223, allocations: 8 kB / 0.5037 GB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004213/0.3265, allocations: 1.025 MB / 0.5047 GB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004534/0.327, allocations: 127.8 kB / 0.5048 GB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01469/0.3417, allocations: 10.7 MB / 0.5153 GB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007351/0.3424, allocations: 31.98 kB / 0.5153 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.872e-05/0.3425, allocations: 39.98 kB / 0.5153 GB, free: 1.59 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.asm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,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 (64): * Single equations (assignments): 61 * 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 35} Notification: Performance of prepare postOptimizeDAE: time 0.0006063/0.3431, allocations: 408.8 kB / 0.5157 GB, free: 1.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001439/0.3433, allocations: 86.88 kB / 0.5158 GB, free: 1.094 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002167/0.3455, allocations: 1.353 MB / 0.5171 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.276e-06/0.3455, allocations: 12 kB / 0.5171 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.3455, allocations: 3.953 kB / 0.5172 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.3455, allocations: 11.98 kB / 0.5172 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003748/0.3493, allocations: 2.506 MB / 0.5196 GB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.3493, allocations: 0 / 0.5196 GB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007834/0.3501, allocations: 163.7 kB / 0.5198 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004706/0.3505, allocations: 172.2 kB / 0.5199 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.117e-05/0.3506, allocations: 23.98 kB / 0.52 GB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005147/0.3558, allocations: 6.817 MB / 0.5266 GB, free: 5.129 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.3558, allocations: 7.984 kB / 0.5266 GB, free: 5.121 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002951/0.3588, allocations: 2.017 MB / 0.5286 GB, free: 2.98 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005058/0.3593, allocations: 231.8 kB / 0.5288 GB, free: 2.734 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001094/0.3594, allocations: 20.19 kB / 0.5288 GB, free: 2.715 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005094/0.3599, allocations: 35.97 kB / 0.5289 GB, free: 2.68 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001448/0.3601, allocations: 64.53 kB / 0.5289 GB, free: 2.617 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.757e-05/0.3602, allocations: 27.98 kB / 0.529 GB, free: 2.59 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006594/0.3608, allocations: 475 kB / 0.5294 GB, free: 2.133 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3608, allocations: 0 / 0.5294 GB, free: 2.133 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001894/0.3627, allocations: 464 kB / 0.5298 GB, free: 1.68 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 9 (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_rq[1],asm_ctrl.motor.phiRotorflux,loadInertia.w,frictTorq.phi,PI_i_q.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 72 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003105/0.3658, allocations: 2.857 MB / 0.5326 GB, free: 14.7 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005344/0.3712, allocations: 2.834 MB / 0.5354 GB, free: 11.79 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.3712, allocations: 0 / 0.5354 GB, free: 11.79 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001359/0.3726, allocations: 1.041 MB / 0.5364 GB, free: 10.68 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001053/0.3737, allocations: 226.6 kB / 0.5366 GB, free: 10.46 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01492/0.3886, allocations: 11.9 MB / 0.5483 GB, free: 14.22 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008254/0.3894, allocations: 1.201 MB / 0.5494 GB, free: 12.99 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006946/0.3901, allocations: 199.1 kB / 0.5496 GB, free: 12.8 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004663/0.3906, allocations: 375.3 kB / 0.55 GB, free: 12.43 MB / 430.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3906, allocations: 0 / 0.55 GB, free: 12.43 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2693/0.6599, allocations: 31.7 MB / 0.5809 GB, free: 110 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002451/0.6602, allocations: 220 kB / 0.5812 GB, free: 109.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.349/3.009, allocations: 0 / 0.5812 GB, free: 109.8 MB / 446.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_ctrlAv_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_ctrlAv.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv_res.mat does not exist to compare? outputFormat=mat