Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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.ASMcharacteristic,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic",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.001187/0.001188, allocations: 108 kB / 17.06 MB, free: 5.82 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.001384/0.001385, allocations: 195.9 kB / 18 MB, free: 4.965 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.346/1.346, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1908/0.1908, allocations: 38.03 MB / 329.9 MB, free: 8.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 55.91 kB / 457.6 MB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3788/0.3802, allocations: 58.05 MB / 0.5036 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.0055/0.3858, allocations: 5.228 MB / 0.5087 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004963/0.3908, allocations: 3.968 MB / 0.5126 GB, free: 1.113 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005088/0.3913, allocations: 15.5 kB / 0.5126 GB, free: 1.109 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009866/0.4012, allocations: 4.8 MB / 0.5173 GB, free: 15.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001059/0.4023, allocations: 331.5 kB / 0.5176 GB, free: 15.53 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006548/0.403, allocations: 218 kB / 0.5178 GB, free: 15.41 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002609/0.4056, allocations: 1.557 MB / 0.5193 GB, free: 14.86 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008755/0.4065, allocations: 0.6024 MB / 0.5199 GB, free: 14.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005751/0.4071, allocations: 364.9 kB / 0.5203 GB, free: 14.43 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005753/0.4076, allocations: 415.1 kB / 0.5207 GB, free: 14.26 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.738e-05/0.4077, allocations: 54.78 kB / 0.5207 GB, free: 14.26 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001816/0.4079, allocations: 68.23 kB / 0.5208 GB, free: 14.25 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002883/0.4082, allocations: 251.3 kB / 0.521 GB, free: 14.16 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003484/0.4086, allocations: 325.4 kB / 0.5213 GB, free: 13.96 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00102/0.4096, allocations: 0.8125 MB / 0.5221 GB, free: 13.64 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.523e-06/0.4096, allocations: 5.609 kB / 0.5221 GB, free: 13.64 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.4096, allocations: 0 / 0.5221 GB, free: 13.64 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.777e-05/0.4097, allocations: 0 / 0.5221 GB, free: 13.64 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001939/0.4116, allocations: 0.882 MB / 0.523 GB, free: 12.98 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/0.4117, allocations: 14.08 kB / 0.523 GB, free: 12.98 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000129/0.4118, allocations: 91.73 kB / 0.5231 GB, free: 12.91 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000337/0.4122, allocations: 72.84 kB / 0.5232 GB, free: 12.87 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00114/0.4133, allocations: 0.5693 MB / 0.5237 GB, free: 12.48 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.417e-05/0.4133, allocations: 31.56 kB / 0.5237 GB, free: 12.47 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.087e-05/0.4134, allocations: 41.59 kB / 0.5238 GB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001094/0.4145, allocations: 0.6387 MB / 0.5244 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.441e-05/0.4146, allocations: 6.469 kB / 0.5244 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.9e-05/0.4146, allocations: 16.56 kB / 0.5244 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001292/0.4148, allocations: 46.7 kB / 0.5245 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00073/0.4155, allocations: 469.5 kB / 0.5249 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003418/0.4189, allocations: 2.507 MB / 0.5274 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004514/0.4194, allocations: 279.2 kB / 0.5276 GB, free: 9.973 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002082/0.4196, allocations: 145.9 kB / 0.5278 GB, free: 9.891 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.697e-05/0.4197, allocations: 7.219 kB / 0.5278 GB, free: 9.887 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.4197, allocations: 47.44 kB / 0.5278 GB, free: 9.832 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 2.084e-06/0.4197, allocations: 1.062 kB / 0.5278 GB, free: 9.832 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002852/0.4226, allocations: 1.549 MB / 0.5293 GB, free: 8.672 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.408e-05/0.4226, allocations: 80.48 kB / 0.5294 GB, free: 8.578 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004476/0.4231, allocations: 417.8 kB / 0.5298 GB, free: 8.316 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.987e-05/0.4231, allocations: 31.7 kB / 0.5298 GB, free: 8.281 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002144/0.4233, allocations: 308.4 kB / 0.5301 GB, free: 8.008 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.4235, allocations: 116.8 kB / 0.5303 GB, free: 7.906 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001223/0.4236, allocations: 81.27 kB / 0.5303 GB, free: 7.852 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.4237, allocations: 359.2 kB / 0.5307 GB, free: 7.504 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002356/0.424, allocations: 130.5 kB / 0.5308 GB, free: 7.441 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003037/0.4243, allocations: 280.5 kB / 0.5311 GB, free: 7.18 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005618/0.4249, allocations: 448.8 kB / 0.5315 GB, free: 6.836 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.4249, allocations: 2 kB / 0.5315 GB, free: 6.836 MB / 398.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001089/0.426, allocations: 0.6787 MB / 0.5322 GB, free: 6.402 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.426, allocations: 6.906 kB / 0.5322 GB, free: 6.402 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.426, allocations: 12.67 kB / 0.5322 GB, free: 6.395 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004362/0.4265, allocations: 151.2 kB / 0.5323 GB, free: 6.312 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003011/0.4268, allocations: 81.78 kB / 0.5324 GB, free: 6.289 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00328/0.4301, allocations: 3.672 MB / 0.536 GB, free: 2.879 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003029/0.4304, allocations: 19.38 kB / 0.536 GB, free: 2.867 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.538e-05/0.4304, allocations: 14.53 kB / 0.536 GB, free: 2.867 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * 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 initialization (42): * Single equations (assignments): 40 * 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): 2 systems {(2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003104/0.4308, allocations: 235.8 kB / 0.5362 GB, free: 2.676 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.494e-05/0.4308, allocations: 48.19 kB / 0.5363 GB, free: 2.648 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009541/0.4318, allocations: 0.5723 MB / 0.5368 GB, free: 2.242 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.4318, allocations: 3.938 kB / 0.5369 GB, free: 2.242 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0007288/0.4325, allocations: 496 kB / 0.5373 GB, free: 1.895 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.4326, allocations: 0 / 0.5373 GB, free: 1.895 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001511/0.4341, allocations: 1.005 MB / 0.5383 GB, free: 1.141 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.4341, allocations: 1.125 kB / 0.5383 GB, free: 1.141 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000198/0.4343, allocations: 34.11 kB / 0.5383 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002706/0.4346, allocations: 93.94 kB / 0.5384 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.439e-05/0.4346, allocations: 10.83 kB / 0.5384 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001955/0.4366, allocations: 2.022 MB / 0.5404 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.4366, allocations: 5.344 kB / 0.5404 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009201/0.4375, allocations: 0.6502 MB / 0.5411 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001819/0.4377, allocations: 139.7 kB / 0.5412 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.687e-05/0.4378, allocations: 7.594 kB / 0.5412 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002052/0.438, allocations: 7.266 kB / 0.5412 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.951e-05/0.438, allocations: 22.03 kB / 0.5412 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.287e-05/0.4381, allocations: 11.16 kB / 0.5412 GB, free: 14.66 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003373/0.4384, allocations: 306.8 kB / 0.5415 GB, free: 14.47 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4384, allocations: 0 / 0.5415 GB, free: 14.47 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005691/0.439, allocations: 122.6 kB / 0.5416 GB, free: 14.46 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (asm.rotor.phi,asm.rotor.w) * 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 (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001171/0.4402, allocations: 1.19 MB / 0.5428 GB, free: 13.48 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009889/0.4412, allocations: 0.6174 MB / 0.5434 GB, free: 13.05 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.4412, allocations: 1.312 kB / 0.5434 GB, free: 13.05 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004463/0.4416, allocations: 299.4 kB / 0.5437 GB, free: 12.85 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006677/0.4423, allocations: 114.1 kB / 0.5438 GB, free: 12.79 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006126/0.4485, allocations: 4.786 MB / 0.5485 GB, free: 9.137 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004925/0.449, allocations: 0.9284 MB / 0.5494 GB, free: 8.184 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002587/0.4492, allocations: 64.34 kB / 0.5494 GB, free: 8.121 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002387/0.4495, allocations: 183.4 kB / 0.5496 GB, free: 7.941 MB / 414.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4495, allocations: 0 / 0.5496 GB, free: 7.941 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03384/0.4833, allocations: 10.45 MB / 0.5598 GB, free: 13.65 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.27/10.76, allocations: 18.8 kB / 0.5598 GB, free: 13.63 MB / 430.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1)