Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_PowerSystems_Examples_AC3ph_Drives_ASMav",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMav,fileNamePrefix="PowerSystems_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.001146/0.001146, allocations: 90.72 kB / 16.65 MB, free: 6.535 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.001451/0.001451, allocations: 177 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.427/1.427, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1655/0.1655, allocations: 38.05 MB / 310.1 MB, free: 5.914 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005881/0.0005878, allocations: 19.12 kB / 377.3 MB, free: 2.609 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2625/0.2631, allocations: 56.33 MB / 433.6 MB, free: 18.65 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.006098/0.2693, allocations: 7.895 MB / 441.5 MB, free: 10.72 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006606/0.2759, allocations: 5.47 MB / 447 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000737/0.2767, allocations: 55.62 kB / 447 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006897/0.2836, allocations: 5.448 MB / 452.5 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001161/0.2848, allocations: 497.9 kB / 453 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001008/0.2858, allocations: 425.8 kB / 453.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002824/0.2886, allocations: 2.955 MB / 456.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001268/0.2899, allocations: 1.021 MB / 457.3 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006404/0.2906, allocations: 493.9 kB / 457.8 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007948/0.2914, allocations: 0.7162 MB / 458.5 MB, free: 9.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.284e-05/0.2915, allocations: 48 kB / 458.6 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004255/0.2919, allocations: 215.7 kB / 458.8 MB, free: 9.332 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003682/0.2923, allocations: 442.8 kB / 459.2 MB, free: 8.898 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004542/0.2927, allocations: 0.5457 MB / 459.8 MB, free: 8.344 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001171/0.2939, allocations: 1.452 MB / 461.2 MB, free: 6.887 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2939, allocations: 0 / 461.2 MB, free: 6.887 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.926e-06/0.2939, allocations: 7.938 kB / 461.2 MB, free: 6.879 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.165e-05/0.294, allocations: 3.938 kB / 461.2 MB, free: 6.875 MB / 334.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.002366/0.2963, allocations: 1.242 MB / 462.5 MB, free: 5.578 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.2964, allocations: 12.03 kB / 462.5 MB, free: 5.566 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001623/0.2965, allocations: 143.6 kB / 462.6 MB, free: 5.418 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005418/0.2971, allocations: 143.5 kB / 462.8 MB, free: 5.277 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001378/0.2985, allocations: 0.878 MB / 463.7 MB, free: 4.359 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.015e-05/0.2985, allocations: 69.98 kB / 463.7 MB, free: 4.289 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000148/0.2987, allocations: 87.89 kB / 463.8 MB, free: 4.203 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001628/0.3003, allocations: 1.235 MB / 465 MB, free: 2.898 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.839e-05/0.3004, allocations: 3.938 kB / 465 MB, free: 2.895 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.343e-05/0.3005, allocations: 35.98 kB / 465.1 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002156/0.3007, allocations: 93.88 kB / 465.2 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001405/0.3021, allocations: 0.9992 MB / 466.2 MB, free: 1.77 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005702/0.3078, allocations: 4.936 MB / 471.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008895/0.3087, allocations: 0.672 MB / 471.8 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005117/0.3092, allocations: 355.3 kB / 472.1 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.194e-05/0.3093, allocations: 16.53 kB / 472.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006066/0.3099, allocations: 449.7 kB / 472.6 MB, free: 11.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.044e-06/0.3099, allocations: 0 / 472.6 MB, free: 11.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.004223/0.3142, allocations: 2.712 MB / 475.3 MB, free: 8.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.121e-05/0.3143, allocations: 111.3 kB / 475.4 MB, free: 8.098 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000853/0.3151, allocations: 0.7468 MB / 476.1 MB, free: 7.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.218e-05/0.3152, allocations: 41.64 kB / 476.2 MB, free: 7.293 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003306/0.3155, allocations: 0.4948 MB / 476.7 MB, free: 6.789 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001775/0.3157, allocations: 240.6 kB / 476.9 MB, free: 6.551 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001054/0.3158, allocations: 85.67 kB / 477 MB, free: 6.461 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.316, allocations: 402.7 kB / 477.4 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005338/0.3165, allocations: 377.8 kB / 477.8 MB, free: 5.688 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000703/0.3172, allocations: 0.6537 MB / 478.4 MB, free: 4.906 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00126/0.3185, allocations: 1.057 MB / 479.5 MB, free: 3.727 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3185, allocations: 0 / 479.5 MB, free: 3.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002686/0.3212, allocations: 1.631 MB / 481.1 MB, free: 2.062 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.3212, allocations: 8 kB / 481.1 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.395e-05/0.3213, allocations: 8 kB / 481.1 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001399/0.3227, allocations: 493.9 kB / 481.6 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005745/0.3232, allocations: 167.7 kB / 481.8 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008379/0.3316, allocations: 6.525 MB / 488.3 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006004/0.3323, allocations: 48.03 kB / 488.3 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.956e-05/0.3323, allocations: 47.98 kB / 488.4 MB, free: 10.5 MB / 366.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 (89): * Single equations (assignments): 87 * 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 {(6,23)} Notification: Performance of prepare postOptimizeDAE: time 0.0004788/0.3328, allocations: 353.4 kB / 488.7 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001045/0.3329, allocations: 82.97 kB / 488.8 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001681/0.3346, allocations: 1.11 MB / 489.9 MB, free: 8.895 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.3346, allocations: 15.88 kB / 489.9 MB, free: 8.879 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3346, allocations: 7.938 kB / 489.9 MB, free: 8.871 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.297e-06/0.3347, allocations: 7.922 kB / 490 MB, free: 8.863 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002967/0.3376, allocations: 2.111 MB / 492.1 MB, free: 6.637 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.3377, allocations: 4 kB / 492.1 MB, free: 6.633 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006736/0.3383, allocations: 123.8 kB / 492.2 MB, free: 6.512 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004739/0.3388, allocations: 162.4 kB / 492.3 MB, free: 6.344 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.004e-05/0.3389, allocations: 23.97 kB / 492.4 MB, free: 6.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003366/0.3423, allocations: 4.458 MB / 496.8 MB, free: 1.465 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.3423, allocations: 3.938 kB / 496.8 MB, free: 1.461 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001988/0.3443, allocations: 1.533 MB / 498.4 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00025/0.3445, allocations: 219.9 kB / 498.6 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.547e-05/0.3446, allocations: 24 kB / 498.6 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004035/0.345, allocations: 31.97 kB / 498.6 MB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001177/0.3452, allocations: 52.42 kB / 498.7 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.501e-05/0.3452, allocations: 23.98 kB / 498.7 MB, free: 15.49 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005678/0.3458, allocations: 0.5107 MB / 499.2 MB, free: 14.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3458, allocations: 0 / 499.2 MB, free: 14.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008467/0.3467, allocations: 256 kB / 499.5 MB, free: 14.73 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 (59): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(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.003018/0.3497, allocations: 2.402 MB / 0.4901 GB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002069/0.3518, allocations: 1.323 MB / 0.4914 GB, free: 10.95 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.3518, allocations: 4.125 kB / 0.4914 GB, free: 10.95 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0011/0.3529, allocations: 0.7766 MB / 0.4922 GB, free: 10.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001057/0.354, allocations: 199.6 kB / 0.4924 GB, free: 9.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01393/0.3679, allocations: 10.71 MB / 0.5028 GB, free: 14.71 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007185/0.3686, allocations: 1.143 MB / 0.5039 GB, free: 13.54 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007041/0.3694, allocations: 239.3 kB / 0.5042 GB, free: 13.3 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004444/0.3698, allocations: 359.3 kB / 0.5045 GB, free: 12.95 MB / 398.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3698, allocations: 0 / 0.5045 GB, free: 12.95 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2124/0.5822, allocations: 22.23 MB / 0.5262 GB, free: 85.27 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002465/0.5825, allocations: 264 kB / 0.5265 GB, free: 84.92 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.252/2.834, allocations: 0 / 0.5265 GB, free: 84.92 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMav_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMav.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1)