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.001357/0.001357, allocations: 109 kB / 17.06 MB, free: 6.02 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.001235/0.001235, allocations: 189.4 kB / 18 MB, free: 5.102 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.447/1.447, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1775/0.1775, allocations: 38.04 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002063/0.002063, allocations: 59.91 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3467/0.3488, allocations: 58.06 MB / 0.5036 GB, free: 7.484 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.005827/0.3547, allocations: 5.232 MB / 0.5087 GB, free: 3.855 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004985/0.3597, allocations: 3.958 MB / 0.5126 GB, free: 1.109 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004246/0.3601, allocations: 19.56 kB / 0.5126 GB, free: 1.102 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01018/0.3703, allocations: 4.79 MB / 0.5173 GB, free: 15.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00116/0.3715, allocations: 334 kB / 0.5176 GB, free: 15.53 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006486/0.3722, allocations: 209.8 kB / 0.5178 GB, free: 15.42 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002297/0.3745, allocations: 1.553 MB / 0.5193 GB, free: 14.87 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008765/0.3754, allocations: 0.5971 MB / 0.5199 GB, free: 14.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005882/0.376, allocations: 367.9 kB / 0.5203 GB, free: 14.43 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006396/0.3766, allocations: 406.3 kB / 0.5206 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.834e-05/0.3767, allocations: 54.56 kB / 0.5207 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001933/0.3769, allocations: 68.3 kB / 0.5208 GB, free: 14.26 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002994/0.3772, allocations: 263.1 kB / 0.521 GB, free: 14.15 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003677/0.3776, allocations: 317.7 kB / 0.5213 GB, free: 13.96 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001119/0.3787, allocations: 0.8131 MB / 0.5221 GB, free: 13.65 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.3787, allocations: 0.5156 kB / 0.5221 GB, free: 13.65 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.3787, allocations: 0 / 0.5221 GB, free: 13.65 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.686e-05/0.3788, allocations: 0 / 0.5221 GB, free: 13.65 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.001682/0.3805, allocations: 0.8822 MB / 0.523 GB, free: 12.99 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.3805, allocations: 17.42 kB / 0.523 GB, free: 12.98 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001185/0.3806, allocations: 92.39 kB / 0.5231 GB, free: 12.91 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002631/0.3809, allocations: 72.7 kB / 0.5231 GB, free: 12.88 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001011/0.3819, allocations: 0.5644 MB / 0.5237 GB, free: 12.49 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.212e-05/0.382, allocations: 36.31 kB / 0.5237 GB, free: 12.47 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.673e-05/0.3821, allocations: 45.86 kB / 0.5238 GB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001019/0.3831, allocations: 0.6226 MB / 0.5244 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.887e-05/0.3831, allocations: 11.22 kB / 0.5244 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.013e-05/0.3832, allocations: 24.23 kB / 0.5244 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001286/0.3833, allocations: 46.55 kB / 0.5245 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008207/0.3841, allocations: 470.8 kB / 0.5249 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003268/0.3874, allocations: 2.509 MB / 0.5274 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004671/0.3879, allocations: 283.7 kB / 0.5276 GB, free: 9.938 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000223/0.3881, allocations: 148.6 kB / 0.5278 GB, free: 9.852 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.48e-05/0.3882, allocations: 3.844 kB / 0.5278 GB, free: 9.852 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.894e-05/0.3882, allocations: 41.28 kB / 0.5278 GB, free: 9.805 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 1.933e-06/0.3882, allocations: 0 / 0.5278 GB, free: 9.805 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002869/0.3911, allocations: 1.549 MB / 0.5293 GB, free: 8.645 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.911e-05/0.3912, allocations: 80.2 kB / 0.5294 GB, free: 8.551 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004776/0.3916, allocations: 413.4 kB / 0.5298 GB, free: 8.293 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.907e-05/0.3917, allocations: 36.08 kB / 0.5298 GB, free: 8.254 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002305/0.3919, allocations: 303.4 kB / 0.5301 GB, free: 7.984 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001142/0.3921, allocations: 126.4 kB / 0.5302 GB, free: 7.875 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001272/0.3922, allocations: 81.8 kB / 0.5303 GB, free: 7.82 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001849/0.3924, allocations: 357.5 kB / 0.5307 GB, free: 7.473 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002056/0.3926, allocations: 135.1 kB / 0.5308 GB, free: 7.406 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003427/0.3929, allocations: 281.2 kB / 0.5311 GB, free: 7.145 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000609/0.3936, allocations: 448.3 kB / 0.5315 GB, free: 6.801 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.3936, allocations: 2.281 kB / 0.5315 GB, free: 6.801 MB / 398.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001094/0.3947, allocations: 0.6781 MB / 0.5321 GB, free: 6.367 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/0.3947, allocations: 12.09 kB / 0.5322 GB, free: 6.363 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.3947, allocations: 8.406 kB / 0.5322 GB, free: 6.359 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004329/0.3952, allocations: 142.9 kB / 0.5323 GB, free: 6.285 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002821/0.3954, allocations: 81.33 kB / 0.5324 GB, free: 6.262 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003726/0.3992, allocations: 3.672 MB / 0.536 GB, free: 2.852 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002835/0.3995, allocations: 14.75 kB / 0.536 GB, free: 2.844 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.363e-05/0.3995, allocations: 16.31 kB / 0.536 GB, free: 2.844 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.0003602/0.3999, allocations: 238.3 kB / 0.5362 GB, free: 2.648 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.027e-05/0.4, allocations: 49.34 kB / 0.5363 GB, free: 2.621 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00104/0.401, allocations: 0.5673 MB / 0.5368 GB, free: 2.219 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.401, allocations: 4.688 kB / 0.5368 GB, free: 2.219 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0007826/0.4018, allocations: 495.3 kB / 0.5373 GB, free: 1.871 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.4018, allocations: 1.25 kB / 0.5373 GB, free: 1.871 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001579/0.4034, allocations: 1 MB / 0.5383 GB, free: 1.121 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.4034, allocations: 5.062 kB / 0.5383 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001997/0.4036, allocations: 37.89 kB / 0.5383 GB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002626/0.4039, allocations: 94.34 kB / 0.5384 GB, free: 1.059 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.666e-05/0.404, allocations: 11.02 kB / 0.5384 GB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002224/0.4062, allocations: 2.02 MB / 0.5404 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.4062, allocations: 2.312 kB / 0.5404 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001002/0.4072, allocations: 0.651 MB / 0.541 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001614/0.4074, allocations: 135.7 kB / 0.5412 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.439e-05/0.4074, allocations: 11.47 kB / 0.5412 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001943/0.4076, allocations: 10.3 kB / 0.5412 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.252e-05/0.4077, allocations: 23.69 kB / 0.5412 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.295e-05/0.4077, allocations: 15.84 kB / 0.5412 GB, free: 14.63 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003475/0.4081, allocations: 304.5 kB / 0.5415 GB, free: 14.44 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4081, allocations: 0 / 0.5415 GB, free: 14.44 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005591/0.4087, allocations: 122.9 kB / 0.5416 GB, free: 14.43 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.001307/0.41, allocations: 1.194 MB / 0.5428 GB, free: 13.45 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001071/0.4111, allocations: 0.6169 MB / 0.5434 GB, free: 13.02 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.4111, allocations: 0 / 0.5434 GB, free: 13.02 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000488/0.4116, allocations: 307.5 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.0006762/0.4123, allocations: 102.8 kB / 0.5438 GB, free: 12.76 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006663/0.4189, allocations: 4.783 MB / 0.5485 GB, free: 9.152 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006376/0.4196, allocations: 0.9245 MB / 0.5494 GB, free: 8.203 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000253/0.4199, allocations: 76.31 kB / 0.5494 GB, free: 8.129 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002691/0.4201, allocations: 183.4 kB / 0.5496 GB, free: 7.949 MB / 414.1 MB Notification: Performance of SimCode: time 2.275e-06/0.4202, allocations: 3.938 kB / 0.5496 GB, free: 7.945 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04081/0.461, allocations: 10.44 MB / 0.5598 GB, free: 13.66 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.4/10.86, allocations: 11.92 kB / 0.5598 GB, free: 13.65 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1)