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.001128/0.001128, allocations: 89.45 kB / 16.32 MB, free: 6.449 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.001338/0.001338, allocations: 181 kB / 17.21 MB, free: 6.32 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.442/1.442, allocations: 223.2 MB / 241.2 MB, free: 5.258 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3202/0.3202, allocations: 38.08 MB / 330.4 MB, free: 14.11 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002948/0.0002949, allocations: 8 kB / 400.2 MB, free: 9.105 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2973/0.2976, allocations: 59.17 MB / 459.3 MB, free: 30.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.008627/0.3063, allocations: 7.549 MB / 466.9 MB, free: 24.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007788/0.3141, allocations: 4.798 MB / 471.7 MB, free: 21.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001263/0.3154, allocations: 52.12 kB / 471.7 MB, free: 21.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009471/0.3249, allocations: 4.479 MB / 476.2 MB, free: 20.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00186/0.3268, allocations: 0.525 MB / 476.7 MB, free: 19.74 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001273/0.3281, allocations: 399.2 kB / 477.1 MB, free: 19.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003006/0.3311, allocations: 2.574 MB / 479.7 MB, free: 18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001384/0.3325, allocations: 1.028 MB / 480.7 MB, free: 17.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000826/0.3334, allocations: 0.5358 MB / 481.3 MB, free: 16.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009586/0.3343, allocations: 0.7178 MB / 482 MB, free: 16.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001395/0.3345, allocations: 50.19 kB / 482 MB, free: 16.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002744/0.3348, allocations: 58.77 kB / 482.1 MB, free: 16.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003416/0.3351, allocations: 372.7 kB / 482.5 MB, free: 16.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000273/0.3354, allocations: 232 kB / 482.7 MB, free: 16.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009858/0.3364, allocations: 1.249 MB / 483.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.78e-06/0.3364, allocations: 0 / 483.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3364, allocations: 0 / 483.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.403e-05/0.3364, allocations: 0 / 483.9 MB, free: 15.07 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.002312/0.3388, allocations: 1.242 MB / 485.2 MB, free: 13.78 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.3388, allocations: 12.03 kB / 485.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000168/0.339, allocations: 151.5 kB / 485.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004328/0.3394, allocations: 130.5 kB / 485.5 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001333/0.3408, allocations: 0.8472 MB / 486.3 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.578e-05/0.3408, allocations: 66 kB / 486.4 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001194/0.3409, allocations: 95.89 kB / 486.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001545/0.3425, allocations: 1.218 MB / 487.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.931e-05/0.3425, allocations: 7.938 kB / 487.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.879e-05/0.3426, allocations: 39.98 kB / 487.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001694/0.3428, allocations: 73.95 kB / 487.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001361/0.3442, allocations: 1.007 MB / 488.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004631/0.3488, allocations: 4.445 MB / 493.2 MB, free: 5.438 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/0.3499, allocations: 0.8965 MB / 494.1 MB, free: 4.496 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005723/0.3505, allocations: 444.1 kB / 494.6 MB, free: 4.055 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.796e-05/0.3505, allocations: 21.27 kB / 494.6 MB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.27e-05/0.3506, allocations: 39.12 kB / 494.6 MB, free: 3.988 MB / 350.1 MB Notification: Performance of pre-optimization done (n=70): time 2.465e-06/0.3506, allocations: 0 / 494.6 MB, free: 3.988 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.005194/0.3558, allocations: 3.33 MB / 498 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.438e-05/0.3558, allocations: 141.1 kB / 498.1 MB, free: 336 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007339/0.3566, allocations: 0.6764 MB / 498.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.432e-05/0.3566, allocations: 37.7 kB / 498.8 MB, free: 15.6 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003127/0.357, allocations: 479.3 kB / 499.3 MB, free: 15.12 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001963/0.3572, allocations: 264.2 kB / 499.5 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.773e-05/0.3572, allocations: 16 kB / 499.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.3573, allocations: 345.9 kB / 499.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005823/0.3579, allocations: 373.8 kB / 0.4885 GB, free: 14.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007388/0.3587, allocations: 0.5822 MB / 0.4891 GB, free: 13.46 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005656/0.3643, allocations: 1.527 MB / 0.4906 GB, free: 11.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.521e-06/0.3644, allocations: 0 / 0.4906 GB, free: 11.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.005114/0.3695, allocations: 2.055 MB / 0.4926 GB, free: 9.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001855/0.3697, allocations: 283.9 kB / 0.4929 GB, free: 9.449 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.478e-05/0.3697, allocations: 8 kB / 0.4929 GB, free: 9.441 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004224/0.374, allocations: 1.047 MB / 0.4939 GB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006042/0.3746, allocations: 139.8 kB / 0.494 GB, free: 8.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01478/0.3894, allocations: 9.224 MB / 0.503 GB, free: 14.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008321/0.3902, allocations: 40.05 kB / 0.5031 GB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.772e-05/0.3903, allocations: 39.98 kB / 0.5031 GB, free: 14.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.3904, allocations: 4 kB / 0.5031 GB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004853/0.3952, allocations: 1.844 MB / 0.5049 GB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.649e-05/0.3953, allocations: 7.938 kB / 0.5049 GB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003994/0.3993, allocations: 0.9969 MB / 0.5059 GB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005789/0.3999, allocations: 131.8 kB / 0.506 GB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01356/0.4134, allocations: 8.967 MB / 0.5148 GB, free: 2.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007569/0.4142, allocations: 36.05 kB / 0.5148 GB, free: 2.375 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.121e-05/0.4143, allocations: 39.98 kB / 0.5149 GB, free: 2.336 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 (65): * Single equations (assignments): 63 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {6 35} Notification: Performance of prepare postOptimizeDAE: time 0.0008346/0.4152, allocations: 407.7 kB / 0.5153 GB, free: 1.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002183/0.4154, allocations: 90.88 kB / 0.5153 GB, free: 1.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002179/0.4176, allocations: 1.257 MB / 0.5166 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-05/0.4176, allocations: 8 kB / 0.5166 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.4176, allocations: 0 / 0.5166 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/0.4176, allocations: 7.984 kB / 0.5166 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003742/0.4214, allocations: 2.414 MB / 0.5189 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.4214, allocations: 128 / 0.5189 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008209/0.4222, allocations: 159.8 kB / 0.5191 GB, free: 13.81 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004695/0.4227, allocations: 155.3 kB / 0.5192 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.413e-05/0.4228, allocations: 23.98 kB / 0.5193 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003865/0.4267, allocations: 5.409 MB / 0.5245 GB, free: 7.684 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.4267, allocations: 0 / 0.5245 GB, free: 7.684 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002696/0.4294, allocations: 1.872 MB / 0.5264 GB, free: 5.738 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003996/0.4298, allocations: 227.9 kB / 0.5266 GB, free: 5.496 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001158/0.4299, allocations: 27.98 kB / 0.5266 GB, free: 5.469 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000477/0.4304, allocations: 32.17 kB / 0.5266 GB, free: 5.438 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001323/0.4305, allocations: 60.52 kB / 0.5267 GB, free: 5.379 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.401e-05/0.4306, allocations: 27.92 kB / 0.5267 GB, free: 5.352 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006429/0.4313, allocations: 475 kB / 0.5272 GB, free: 4.895 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4313, allocations: 0 / 0.5272 GB, free: 4.895 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00169/0.433, allocations: 460 kB / 0.5276 GB, free: 4.445 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 (79): * Single equations (assignments): 74 * 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%) 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.002982/0.436, allocations: 2.437 MB / 0.53 GB, free: 1.918 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00511/0.4411, allocations: 2.587 MB / 0.5325 GB, free: 15.29 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.326e-06/0.4411, allocations: 0 / 0.5325 GB, free: 15.29 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001431/0.4426, allocations: 0.9174 MB / 0.5334 GB, free: 14.32 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001441/0.444, allocations: 225.9 kB / 0.5336 GB, free: 14.1 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0142/0.4582, allocations: 7.65 MB / 0.5411 GB, free: 6.184 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008511/0.4591, allocations: 1.174 MB / 0.5423 GB, free: 4.977 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008109/0.46, allocations: 203.1 kB / 0.5425 GB, free: 4.773 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000531/0.4605, allocations: 371.3 kB / 0.5428 GB, free: 4.41 MB / 414.1 MB Notification: Performance of SimCode: time 1.332e-06/0.4605, allocations: 0 / 0.5428 GB, free: 4.41 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05626/0.5168, allocations: 31.44 MB / 0.5735 GB, free: 5.238 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002453/0.5171, allocations: 231.6 kB / 0.5737 GB, free: 4.988 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.587/3.104, allocations: 0 / 0.5737 GB, free: 4.988 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