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.0009034/0.0009032, allocations: 95.88 kB / 16.3 MB, free: 6.121 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.001029/0.00103, allocations: 181.8 kB / 17.2 MB, free: 6.004 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.407/1.407, allocations: 205.4 MB / 223.4 MB, free: 13.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1656/0.1656, allocations: 38.04 MB / 309.7 MB, free: 6.125 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.0005391/0.0005392, allocations: 19.12 kB / 376.6 MB, free: 3.098 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2314/0.232, allocations: 56.32 MB / 432.9 MB, free: 18.83 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.005777/0.2378, allocations: 7.113 MB / 440 MB, free: 11.69 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007308/0.2452, allocations: 5.034 MB / 445.1 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001205/0.2464, allocations: 55.62 kB / 445.1 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006408/0.2528, allocations: 1.932 MB / 447 MB, free: 4.652 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002169/0.255, allocations: 450.6 kB / 447.5 MB, free: 4.211 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001812/0.2569, allocations: 419.2 kB / 447.9 MB, free: 3.801 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00158/0.2585, allocations: 0.7571 MB / 448.7 MB, free: 3.043 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001877/0.2603, allocations: 0.96 MB / 449.6 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000976/0.2613, allocations: 454.3 kB / 450.1 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009287/0.2623, allocations: 0.4944 MB / 450.6 MB, free: 1.102 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002444/0.2625, allocations: 44 kB / 450.6 MB, free: 1.059 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005524/0.2631, allocations: 147.8 kB / 450.7 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004187/0.2635, allocations: 407 kB / 451.1 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002816/0.2638, allocations: 225.1 kB / 451.4 MB, free: 296 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001482/0.2653, allocations: 1.184 MB / 452.5 MB, free: 15.1 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.2653, allocations: 0 / 452.5 MB, free: 15.1 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.2654, allocations: 0 / 452.5 MB, free: 15.1 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.158e-05/0.2654, allocations: 0 / 452.5 MB, free: 15.1 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.003489/0.2689, allocations: 1.269 MB / 453.8 MB, free: 13.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.229e-05/0.269, allocations: 8.031 kB / 453.8 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002528/0.2692, allocations: 143.4 kB / 454 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000859/0.2701, allocations: 162.5 kB / 454.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001889/0.272, allocations: 0.8433 MB / 455 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.441e-05/0.2721, allocations: 62 kB / 455 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001685/0.2722, allocations: 95.89 kB / 455.1 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001789/0.274, allocations: 1.22 MB / 456.3 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.704e-05/0.2741, allocations: 3.938 kB / 456.3 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001256/0.2742, allocations: 35.95 kB / 456.4 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002987/0.2745, allocations: 89.94 kB / 456.5 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002285/0.2768, allocations: 0.9875 MB / 457.4 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009167/0.286, allocations: 4.924 MB / 462.4 MB, free: 4.871 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001338/0.2874, allocations: 0.6679 MB / 463 MB, free: 4.172 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.896e-05/0.2875, allocations: 8.609 kB / 463 MB, free: 4.164 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009422/0.2884, allocations: 445.8 kB / 463.5 MB, free: 3.711 MB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 3.186e-06/0.2885, allocations: 0 / 463.5 MB, free: 3.711 MB / 334.1 MB Notification: Performance of matching and sorting (n=65): time 0.006709/0.2952, allocations: 2.904 MB / 466.4 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.603e-05/0.2953, allocations: 115.3 kB / 466.5 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001238/0.2965, allocations: 0.7467 MB / 467.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.119e-05/0.2966, allocations: 37.7 kB / 467.3 MB, free: 15.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004771/0.2971, allocations: 0.5025 MB / 467.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001816/0.2973, allocations: 240.6 kB / 468 MB, free: 14.94 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.417e-05/0.2974, allocations: 16 kB / 468 MB, free: 14.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002172/0.2976, allocations: 402.7 kB / 468.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005357/0.2981, allocations: 369.8 kB / 468.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007153/0.2988, allocations: 0.6497 MB / 469.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000721/0.2996, allocations: 487 kB / 469.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.2996, allocations: 0 / 469.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.003101/0.3027, allocations: 1.711 MB / 471.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.3027, allocations: 8 kB / 471.6 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/0.3028, allocations: 8 kB / 471.6 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001504/0.3043, allocations: 0.5146 MB / 472.2 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005674/0.3049, allocations: 163.7 kB / 472.3 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01013/0.315, allocations: 8.076 MB / 480.4 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007124/0.3157, allocations: 59.77 kB / 480.5 MB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.141e-05/0.3158, allocations: 43.98 kB / 480.5 MB, free: 1.859 MB / 350.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.0006222/0.3165, allocations: 357.6 kB / 480.8 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001665/0.3166, allocations: 82.97 kB / 480.9 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001884/0.3185, allocations: 1.209 MB / 482.1 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.3186, allocations: 8 kB / 482.1 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.3186, allocations: 4 kB / 482.1 MB, free: 120 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.3186, allocations: 3.984 kB / 482.2 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003329/0.3219, allocations: 2.203 MB / 484.4 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.3219, allocations: 0 / 484.4 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000676/0.3226, allocations: 119.9 kB / 484.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005313/0.3232, allocations: 179.3 kB / 484.6 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.658e-05/0.3232, allocations: 27.97 kB / 484.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004743/0.328, allocations: 5.878 MB / 490.6 MB, free: 7.031 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/0.328, allocations: 8.016 kB / 490.6 MB, free: 7.023 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002351/0.3304, allocations: 1.692 MB / 492.3 MB, free: 5.199 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003578/0.3307, allocations: 212 kB / 492.5 MB, free: 4.973 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001133/0.3309, allocations: 31.92 kB / 492.5 MB, free: 4.941 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004205/0.3313, allocations: 31.97 kB / 492.5 MB, free: 4.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001362/0.3314, allocations: 56.44 kB / 492.6 MB, free: 4.855 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.884e-05/0.3315, allocations: 27.98 kB / 492.6 MB, free: 4.828 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006666/0.3322, allocations: 0.5029 MB / 493.1 MB, free: 4.332 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3322, allocations: 0 / 493.1 MB, free: 4.332 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001067/0.3333, allocations: 260 kB / 493.4 MB, free: 4.078 MB / 366.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.003388/0.3367, allocations: 2.894 MB / 496.3 MB, free: 1.113 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002486/0.3392, allocations: 1.443 MB / 497.7 MB, free: 15.63 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.3392, allocations: 0 / 497.7 MB, free: 15.63 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001279/0.3405, allocations: 0.8927 MB / 498.6 MB, free: 14.69 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008943/0.3414, allocations: 187.6 kB / 498.8 MB, free: 14.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01353/0.3549, allocations: 13.53 MB / 0.5003 GB, free: 0.582 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008125/0.3558, allocations: 1.166 MB / 0.5014 GB, free: 15.39 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000734/0.3565, allocations: 231.3 kB / 0.5017 GB, free: 15.16 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004663/0.357, allocations: 359.3 kB / 0.502 GB, free: 14.81 MB / 398.1 MB Notification: Performance of SimCode: time 8.41e-07/0.357, allocations: 0 / 0.502 GB, free: 14.81 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2005/0.5575, allocations: 22.56 MB / 0.524 GB, free: 84.63 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001532/0.5577, allocations: 241.2 kB / 0.5243 GB, free: 84.39 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.135/2.693, allocations: 0 / 0.5243 GB, free: 84.39 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/linux/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) Environment - environmentSimulation: