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.001655/0.001655, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.001784/0.001784, allocations: 193.4 kB / 18 MB, free: 5.074 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.439/1.439, 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.1877/0.1877, allocations: 38.03 MB / 329.9 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002057/0.002057, allocations: 67.88 kB / 457.6 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3525/0.3545, allocations: 58.06 MB / 0.5036 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.007447/0.362, allocations: 5.237 MB / 0.5087 GB, free: 3.863 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005632/0.3677, allocations: 3.954 MB / 0.5126 GB, free: 1.121 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006112/0.3683, allocations: 15.66 kB / 0.5126 GB, free: 1.117 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01206/0.3804, allocations: 4.795 MB / 0.5173 GB, free: 15.74 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001215/0.3817, allocations: 321.5 kB / 0.5176 GB, free: 15.55 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007518/0.3824, allocations: 221.8 kB / 0.5178 GB, free: 15.43 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0029/0.3853, allocations: 1.546 MB / 0.5193 GB, free: 14.89 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001005/0.3864, allocations: 0.6007 MB / 0.5199 GB, free: 14.61 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007053/0.3871, allocations: 363.9 kB / 0.5202 GB, free: 14.45 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007078/0.3878, allocations: 418.2 kB / 0.5206 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001073/0.3879, allocations: 56.38 kB / 0.5207 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002293/0.3882, allocations: 66.7 kB / 0.5208 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000342/0.3885, allocations: 254.3 kB / 0.521 GB, free: 14.17 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004079/0.3889, allocations: 319.1 kB / 0.5213 GB, free: 13.98 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001123/0.3901, allocations: 0.813 MB / 0.5221 GB, free: 13.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3901, allocations: 0 / 0.5221 GB, free: 13.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3901, allocations: 0 / 0.5221 GB, free: 13.66 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.833e-05/0.3901, allocations: 0 / 0.5221 GB, free: 13.66 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.001757/0.3919, allocations: 0.8861 MB / 0.523 GB, free: 13 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.3919, allocations: 13.7 kB / 0.523 GB, free: 13 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001235/0.3921, allocations: 87.3 kB / 0.5231 GB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003075/0.3924, allocations: 73.56 kB / 0.5231 GB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001144/0.3935, allocations: 0.5724 MB / 0.5237 GB, free: 12.5 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.118e-05/0.3936, allocations: 39.75 kB / 0.5237 GB, free: 12.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.156e-05/0.3937, allocations: 46.08 kB / 0.5238 GB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001068/0.3948, allocations: 0.6273 MB / 0.5244 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.924e-05/0.3948, allocations: 9.078 kB / 0.5244 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.09e-05/0.3949, allocations: 20.61 kB / 0.5244 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001513/0.395, allocations: 47.88 kB / 0.5245 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008132/0.3958, allocations: 465.9 kB / 0.5249 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003582/0.3994, allocations: 2.502 MB / 0.5274 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004926/0.3999, allocations: 284.2 kB / 0.5276 GB, free: 9.926 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002278/0.4002, allocations: 144.8 kB / 0.5278 GB, free: 9.844 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.46e-05/0.4002, allocations: 8.641 kB / 0.5278 GB, free: 9.84 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.202e-05/0.4003, allocations: 43.56 kB / 0.5278 GB, free: 9.789 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 2.324e-06/0.4003, allocations: 1.469 kB / 0.5278 GB, free: 9.789 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.003209/0.4035, allocations: 1.548 MB / 0.5293 GB, free: 8.629 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.266e-05/0.4036, allocations: 88.42 kB / 0.5294 GB, free: 8.527 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006178/0.4042, allocations: 417.1 kB / 0.5298 GB, free: 8.266 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.242e-05/0.4043, allocations: 32.95 kB / 0.5298 GB, free: 8.23 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000249/0.4046, allocations: 298.5 kB / 0.5301 GB, free: 7.965 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000125/0.4047, allocations: 122.4 kB / 0.5302 GB, free: 7.859 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/0.4048, allocations: 84.73 kB / 0.5303 GB, free: 7.801 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.405, allocations: 355 kB / 0.5307 GB, free: 7.457 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002232/0.4053, allocations: 134.4 kB / 0.5308 GB, free: 7.391 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000336/0.4056, allocations: 277.5 kB / 0.5311 GB, free: 7.133 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006338/0.4063, allocations: 448.8 kB / 0.5315 GB, free: 6.789 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.4063, allocations: 1.438 kB / 0.5315 GB, free: 6.789 MB / 398.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001185/0.4075, allocations: 0.6786 MB / 0.5321 GB, free: 6.355 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.4075, allocations: 7.406 kB / 0.5322 GB, free: 6.355 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.386e-05/0.4075, allocations: 12.41 kB / 0.5322 GB, free: 6.348 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004564/0.408, allocations: 150.8 kB / 0.5323 GB, free: 6.266 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003183/0.4083, allocations: 77.36 kB / 0.5324 GB, free: 6.246 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003997/0.4123, allocations: 3.677 MB / 0.536 GB, free: 2.832 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004675/0.4128, allocations: 14.75 kB / 0.536 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.076e-05/0.4129, allocations: 24.64 kB / 0.536 GB, free: 2.816 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.0004623/0.4134, allocations: 234.5 kB / 0.5362 GB, free: 2.625 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001841/0.4135, allocations: 48.16 kB / 0.5363 GB, free: 2.598 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001164/0.4147, allocations: 0.5681 MB / 0.5368 GB, free: 2.195 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.204e-06/0.4147, allocations: 4.406 kB / 0.5368 GB, free: 2.195 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0008759/0.4156, allocations: 491.3 kB / 0.5373 GB, free: 1.852 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.4156, allocations: 1.406 kB / 0.5373 GB, free: 1.852 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001751/0.4174, allocations: 1.003 MB / 0.5383 GB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.4174, allocations: 1.469 kB / 0.5383 GB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002257/0.4176, allocations: 38.73 kB / 0.5383 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003148/0.418, allocations: 89.94 kB / 0.5384 GB, free: 1.043 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.109e-05/0.418, allocations: 11.17 kB / 0.5384 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002359/0.4204, allocations: 2.012 MB / 0.5404 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.4204, allocations: 9.438 kB / 0.5404 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00117/0.4216, allocations: 0.6514 MB / 0.541 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000227/0.4218, allocations: 140.3 kB / 0.5412 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.207e-05/0.4219, allocations: 6.312 kB / 0.5412 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002027/0.4221, allocations: 15.39 kB / 0.5412 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.176e-05/0.4221, allocations: 23.53 kB / 0.5412 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.607e-05/0.4222, allocations: 10.53 kB / 0.5412 GB, free: 14.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004546/0.4226, allocations: 301.4 kB / 0.5415 GB, free: 14.43 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4226, allocations: 0 / 0.5415 GB, free: 14.43 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007079/0.4234, allocations: 123.1 kB / 0.5416 GB, free: 14.41 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.001433/0.4248, allocations: 1.194 MB / 0.5428 GB, free: 13.44 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001254/0.4261, allocations: 0.6181 MB / 0.5434 GB, free: 13.01 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.4261, allocations: 0 / 0.5434 GB, free: 13.01 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005293/0.4266, allocations: 301.9 kB / 0.5437 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007709/0.4274, allocations: 119.5 kB / 0.5438 GB, free: 12.73 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006992/0.4344, allocations: 4.781 MB / 0.5485 GB, free: 9.137 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006161/0.4351, allocations: 0.9167 MB / 0.5494 GB, free: 8.195 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002853/0.4354, allocations: 72.34 kB / 0.5494 GB, free: 8.125 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000259/0.4356, allocations: 187.3 kB / 0.5496 GB, free: 7.941 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4356, allocations: 0 / 0.5496 GB, free: 7.941 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04255/0.4782, allocations: 10.45 MB / 0.5598 GB, free: 13.65 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.8/11.28, allocations: 15.98 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)