Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_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 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.ASM,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM,fileNamePrefix="PowerSystems_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.0009321/0.0009317, allocations: 92.27 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.001037/0.001038, allocations: 184.9 kB / 17.2 MB, free: 6.34 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.38/1.38, allocations: 205.4 MB / 223.3 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.1673/0.1673, allocations: 38.03 MB / 309.7 MB, free: 6.145 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.0004736/0.0004736, allocations: 16 kB / 376.6 MB, free: 3.117 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2146/0.2151, allocations: 56.32 MB / 432.9 MB, free: 18.85 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.005809/0.221, allocations: 7.386 MB / 440.3 MB, free: 11.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006754/0.2278, allocations: 5.18 MB / 445.5 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009371/0.2288, allocations: 55.62 kB / 445.5 MB, free: 6.188 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004227/0.233, allocations: 1.91 MB / 447.4 MB, free: 4.27 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001405/0.2344, allocations: 0.5375 MB / 448 MB, free: 3.73 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009461/0.2354, allocations: 453.2 kB / 448.4 MB, free: 3.289 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008087/0.2362, allocations: 0.9482 MB / 449.4 MB, free: 2.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001235/0.2375, allocations: 1.246 MB / 450.6 MB, free: 1.051 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005676/0.238, allocations: 0.5528 MB / 451.2 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006799/0.2387, allocations: 0.6387 MB / 451.8 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001322/0.2389, allocations: 64 kB / 451.9 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001084/0.24, allocations: 0.5226 MB / 452.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000562/0.2405, allocations: 0.53 MB / 452.9 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002815/0.2408, allocations: 277 kB / 453.2 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001763/0.2426, allocations: 1.683 MB / 454.9 MB, free: 12.77 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2426, allocations: 0 / 454.9 MB, free: 12.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.2426, allocations: 0 / 454.9 MB, free: 12.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.44e-05/0.2426, allocations: 4 kB / 454.9 MB, free: 12.77 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: 293 * Number of variables: 293 Notification: Performance of Generate backend data structure: time 0.003463/0.2461, allocations: 1.695 MB / 456.6 MB, free: 10.99 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.652e-05/0.2462, allocations: 12.03 kB / 456.6 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002542/0.2464, allocations: 177.2 kB / 456.8 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006547/0.2471, allocations: 182.2 kB / 456.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002033/0.2492, allocations: 0.9875 MB / 457.9 MB, free: 9.586 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001703/0.2493, allocations: 183.1 kB / 458.1 MB, free: 9.387 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002013/0.2495, allocations: 104 kB / 458.2 MB, free: 9.285 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003166/0.2527, allocations: 1.875 MB / 460.1 MB, free: 7.336 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.041e-05/0.2528, allocations: 0 / 460.1 MB, free: 7.336 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001464/0.2529, allocations: 51.92 kB / 460.1 MB, free: 7.285 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002767/0.2532, allocations: 125.9 kB / 460.2 MB, free: 7.164 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002741/0.2559, allocations: 1.608 MB / 461.9 MB, free: 5.555 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008535/0.2645, allocations: 5.771 MB / 467.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00248/0.267, allocations: 1.234 MB / 468.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.709e-05/0.2671, allocations: 17.2 kB / 468.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001817/0.2689, allocations: 1 MB / 469.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 2.695e-06/0.2689, allocations: 0 / 469.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=119): time 0.009318/0.2782, allocations: 5.224 MB / 475.1 MB, free: 7.852 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.881e-05/0.2784, allocations: 127.8 kB / 475.2 MB, free: 7.699 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009109/0.2793, allocations: 0.782 MB / 476 MB, free: 6.906 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.199e-05/0.2794, allocations: 53.7 kB / 476.1 MB, free: 6.848 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003868/0.2798, allocations: 0.5037 MB / 476.6 MB, free: 6.336 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003113/0.2801, allocations: 414.2 kB / 477 MB, free: 5.926 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.767e-05/0.2802, allocations: 24 kB / 477 MB, free: 5.902 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001939/0.2804, allocations: 418.7 kB / 477.4 MB, free: 5.484 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009499/0.2813, allocations: 0.6747 MB / 478.1 MB, free: 4.809 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0011/0.2824, allocations: 0.9412 MB / 479 MB, free: 3.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/0.2836, allocations: 0.8392 MB / 479.9 MB, free: 2.926 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.2836, allocations: 0 / 479.9 MB, free: 2.926 MB / 350.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.003705/0.2873, allocations: 2.382 MB / 482.2 MB, free: 496 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.37e-05/0.2874, allocations: 61.67 kB / 482.3 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.771e-05/0.2874, allocations: 8 kB / 482.3 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001287/0.2887, allocations: 446.4 kB / 482.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007513/0.2895, allocations: 211.6 kB / 482.9 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008895/0.2984, allocations: 7.254 MB / 490.2 MB, free: 8.109 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00122/0.2996, allocations: 99.81 kB / 490.3 MB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001569/0.2998, allocations: 92.06 kB / 490.4 MB, free: 7.922 MB / 366.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.0008695/0.3007, allocations: 461.4 kB / 490.8 MB, free: 7.465 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002957/0.301, allocations: 106.6 kB / 490.9 MB, free: 7.359 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004218/0.3052, allocations: 2.097 MB / 493 MB, free: 5.18 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.164e-05/0.3053, allocations: 27.98 kB / 493.1 MB, free: 5.152 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.3053, allocations: 12 kB / 493.1 MB, free: 5.141 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.207e-05/0.3053, allocations: 3.984 kB / 493.1 MB, free: 5.137 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00681/0.3121, allocations: 3.562 MB / 496.6 MB, free: 1.445 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.276e-05/0.3122, allocations: 4 kB / 496.6 MB, free: 1.441 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009585/0.3131, allocations: 167.7 kB / 496.8 MB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006205/0.3138, allocations: 179.3 kB / 497 MB, free: 1.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001048/0.3139, allocations: 43.94 kB / 497 MB, free: 1.047 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004627/0.3185, allocations: 5.874 MB / 0.4911 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.3186, allocations: 4.031 kB / 0.4911 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005558/0.3241, allocations: 3.089 MB / 0.4941 GB, free: 7.434 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006491/0.3248, allocations: 311.6 kB / 0.4944 GB, free: 7.109 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002386/0.325, allocations: 91.92 kB / 0.4945 GB, free: 7.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008834/0.3259, allocations: 131.8 kB / 0.4946 GB, free: 6.891 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002355/0.3262, allocations: 80.81 kB / 0.4947 GB, free: 6.812 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.76e-05/0.3263, allocations: 43.97 kB / 0.4948 GB, free: 6.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007437/0.327, allocations: 0.5302 MB / 0.4953 GB, free: 6.242 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.327, allocations: 0 / 0.4953 GB, free: 6.242 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001291/0.3283, allocations: 352.1 kB / 0.4956 GB, free: 5.898 MB / 382.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.006575/0.3349, allocations: 4.238 MB / 0.4998 GB, free: 1.594 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004494/0.3394, allocations: 3.121 MB / 0.5028 GB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.3395, allocations: 4.375 kB / 0.5028 GB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002263/0.3417, allocations: 1.363 MB / 0.5041 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009983/0.3427, allocations: 215.5 kB / 0.5043 GB, free: 12.71 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.181/0.5238, allocations: 14.77 MB / 0.5188 GB, free: 85.22 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000864/0.5247, allocations: 1.306 MB / 0.52 GB, free: 84.51 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009353/0.5256, allocations: 292.5 kB / 0.5203 GB, free: 84.5 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005393/0.5262, allocations: 440 kB / 0.5207 GB, free: 84.49 MB / 398.1 MB Notification: Performance of SimCode: time 7.91e-07/0.5262, allocations: 3.625 kB / 0.5207 GB, free: 84.49 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04448/0.5707, allocations: 31.21 MB / 0.5512 GB, free: 61.82 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001704/0.5709, allocations: 243.2 kB / 0.5515 GB, free: 61.57 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.466/3.037, allocations: 7.844 kB / 0.5515 GB, free: 61.57 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe 2>&1) Environment - environmentSimulation: