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 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.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.001408/0.001408, allocations: 108.3 kB / 16.51 MB, free: 6.707 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.001508/0.001508, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.375/1.375, allocations: 205.1 MB / 223.3 MB, free: 12.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.173/0.173, allocations: 37.99 MB / 308.6 MB, free: 6.238 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.001402/0.001402, allocations: 75.17 kB / 374.7 MB, free: 4.004 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.225/0.2265, allocations: 55.23 MB / 430 MB, free: 19.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.006215/0.2327, allocations: 6.079 MB / 436 MB, free: 13.67 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00615/0.2389, allocations: 4.411 MB / 440.5 MB, free: 9.242 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001054/0.24, allocations: 35.75 kB / 440.5 MB, free: 9.207 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007743/0.2478, allocations: 4.701 MB / 445.2 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008975/0.2487, allocations: 314.6 kB / 445.5 MB, free: 4.191 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005284/0.2492, allocations: 187.8 kB / 445.7 MB, free: 4.008 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001773/0.251, allocations: 2.066 MB / 447.7 MB, free: 1.938 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005812/0.2516, allocations: 0.4977 MB / 448.2 MB, free: 1.434 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003095/0.2519, allocations: 310.7 kB / 448.5 MB, free: 1.129 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004164/0.2524, allocations: 418.5 kB / 449 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.704e-05/0.2524, allocations: 35.94 kB / 449 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001442/0.2526, allocations: 43.98 kB / 449 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001644/0.2527, allocations: 231.3 kB / 449.3 MB, free: 424 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002249/0.253, allocations: 306.5 kB / 449.6 MB, free: 116 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006801/0.2537, allocations: 0.7748 MB / 450.3 MB, free: 15.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2537, allocations: 8 kB / 450.3 MB, free: 15.33 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.31e-07/0.2537, allocations: 0 / 450.3 MB, free: 15.33 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.2537, allocations: 3.938 kB / 450.3 MB, free: 15.32 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: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001532/0.2552, allocations: 0.863 MB / 451.2 MB, free: 14.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.2553, allocations: 16.03 kB / 451.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.656e-05/0.2554, allocations: 86.7 kB / 451.3 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002714/0.2557, allocations: 72.17 kB / 451.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008889/0.2566, allocations: 0.5486 MB / 451.9 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.115e-05/0.2566, allocations: 33 kB / 452 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.011e-05/0.2567, allocations: 47.97 kB / 452 MB, free: 13.56 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009128/0.2576, allocations: 0.6258 MB / 452.6 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.162e-05/0.2577, allocations: 4 kB / 452.6 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.884e-05/0.2577, allocations: 23.98 kB / 452.7 MB, free: 12.87 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001155/0.2578, allocations: 48.97 kB / 452.7 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006853/0.2585, allocations: 467.6 kB / 453.2 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002846/0.2614, allocations: 2.518 MB / 455.7 MB, free: 9.703 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000417/0.2618, allocations: 281.2 kB / 456 MB, free: 9.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002127/0.262, allocations: 142.2 kB / 456.1 MB, free: 9.266 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.92e-05/0.2621, allocations: 15.86 kB / 456.1 MB, free: 9.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.398e-05/0.2621, allocations: 46.5 kB / 456.2 MB, free: 9.195 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.633e-06/0.2621, allocations: 0 / 456.2 MB, free: 9.195 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002702/0.2648, allocations: 1.529 MB / 457.7 MB, free: 7.551 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.119e-05/0.2649, allocations: 81.11 kB / 457.8 MB, free: 7.453 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004135/0.2653, allocations: 409.9 kB / 458.2 MB, free: 7.051 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.531e-05/0.2654, allocations: 29.7 kB / 458.2 MB, free: 7.016 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002001/0.2656, allocations: 307.4 kB / 458.5 MB, free: 6.711 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.697e-05/0.2657, allocations: 110.5 kB / 458.6 MB, free: 6.602 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001249/0.2658, allocations: 86.06 kB / 458.7 MB, free: 6.512 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.2659, allocations: 354.7 kB / 459 MB, free: 6.156 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002041/0.2661, allocations: 132.8 kB / 459.2 MB, free: 6.027 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003004/0.2664, allocations: 282.3 kB / 459.4 MB, free: 5.688 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005546/0.267, allocations: 461.9 kB / 459.9 MB, free: 5.172 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.267, allocations: 0 / 459.9 MB, free: 5.172 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001072/0.2681, allocations: 0.6752 MB / 460.6 MB, free: 4.465 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.2681, allocations: 4 kB / 460.6 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/0.2682, allocations: 15.92 kB / 460.6 MB, free: 4.445 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004376/0.2686, allocations: 145.9 kB / 460.7 MB, free: 4.297 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003055/0.2689, allocations: 79.83 kB / 460.8 MB, free: 4.219 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003587/0.2725, allocations: 3.385 MB / 464.2 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003278/0.2729, allocations: 19.98 kB / 464.2 MB, free: 0.543 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.084e-05/0.2729, allocations: 16 kB / 464.2 MB, free: 0.5273 MB / 334.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.0003629/0.2733, allocations: 237.5 kB / 464.5 MB, free: 292 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.157e-05/0.2734, allocations: 51.48 kB / 464.5 MB, free: 240 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009235/0.2743, allocations: 0.5713 MB / 465.1 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.2743, allocations: 7.938 kB / 465.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0006841/0.275, allocations: 490.3 kB / 465.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.275, allocations: 4 kB / 465.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00139/0.2764, allocations: 0.9932 MB / 466.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.2764, allocations: 8 kB / 466.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001897/0.2766, allocations: 39.91 kB / 466.6 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000263/0.2769, allocations: 96.86 kB / 466.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.225e-05/0.2769, allocations: 8 kB / 466.7 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001807/0.2788, allocations: 1.859 MB / 468.6 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.2788, allocations: 4.031 kB / 468.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000883/0.2797, allocations: 0.6515 MB / 469.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001394/0.2798, allocations: 140.5 kB / 469.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.942e-05/0.2799, allocations: 11.98 kB / 469.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001763/0.28, allocations: 8 kB / 469.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.077e-05/0.2801, allocations: 27.97 kB / 469.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.121e-05/0.2801, allocations: 8 kB / 469.4 MB, free: 11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002969/0.2804, allocations: 303.1 kB / 469.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2804, allocations: 0 / 469.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005194/0.281, allocations: 116 kB / 469.8 MB, free: 10.59 MB / 350.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.001084/0.2821, allocations: 1.193 MB / 471 MB, free: 9.355 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009309/0.283, allocations: 0.6106 MB / 471.6 MB, free: 8.719 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.283, allocations: 0 / 471.6 MB, free: 8.719 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004133/0.2834, allocations: 304.3 kB / 471.9 MB, free: 8.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000644/0.2841, allocations: 113.2 kB / 472 MB, free: 8.301 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006363/0.2905, allocations: 5.008 MB / 477 MB, free: 3.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005131/0.291, allocations: 0.9245 MB / 478 MB, free: 2.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000275/0.2913, allocations: 76.33 kB / 478 MB, free: 1.996 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000232/0.2915, allocations: 179.4 kB / 478.2 MB, free: 1.824 MB / 350.1 MB Notification: Performance of SimCode: time 8.42e-07/0.2915, allocations: 0 / 478.2 MB, free: 1.824 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02314/0.3147, allocations: 9.938 MB / 488.2 MB, free: 7.891 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002407/0.315, allocations: 221 kB / 488.4 MB, free: 7.637 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.99/2.305, allocations: 4 kB / 488.4 MB, free: 7.633 MB / 366.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)