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.0009509/0.0009509, allocations: 95.23 kB / 16.65 MB, free: 6.535 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.0009414/0.0009413, allocations: 175.4 kB / 17.56 MB, free: 6.18 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.442/1.442, allocations: 205.4 MB / 223.7 MB, free: 13 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1669/0.1669, allocations: 38.05 MB / 310.1 MB, free: 5.906 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.0004993/0.0004995, allocations: 12 kB / 377.3 MB, free: 2.605 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.2645, allocations: 56.33 MB / 433.6 MB, free: 18.66 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.005234/0.2698, allocations: 5.663 MB / 439.3 MB, free: 12.97 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005522/0.2754, allocations: 4.329 MB / 443.6 MB, free: 8.625 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007125/0.2761, allocations: 27.81 kB / 443.6 MB, free: 8.598 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007295/0.2834, allocations: 4.583 MB / 448.2 MB, free: 4.008 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008974/0.2844, allocations: 306.7 kB / 448.5 MB, free: 3.707 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005522/0.2849, allocations: 195.7 kB / 448.7 MB, free: 3.516 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001788/0.2867, allocations: 2.055 MB / 450.7 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000962/0.2877, allocations: 0.7013 MB / 451.4 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003545/0.2881, allocations: 282.7 kB / 451.7 MB, free: 452 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004648/0.2885, allocations: 410.5 kB / 452.1 MB, free: 40 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.987e-05/0.2886, allocations: 24 kB / 452.1 MB, free: 16 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001715/0.2888, allocations: 40.02 kB / 452.2 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000251/0.289, allocations: 219.4 kB / 452.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003112/0.2894, allocations: 308.2 kB / 452.7 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007904/0.2902, allocations: 0.7629 MB / 453.5 MB, free: 14.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.2902, allocations: 0 / 453.5 MB, free: 14.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.2902, allocations: 0 / 453.5 MB, free: 14.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.277e-06/0.2902, allocations: 0 / 453.5 MB, free: 14.68 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.001576/0.2918, allocations: 0.7578 MB / 454.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.2918, allocations: 8.031 kB / 454.2 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001287/0.292, allocations: 86.7 kB / 454.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002969/0.2923, allocations: 72.17 kB / 454.4 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009417/0.2932, allocations: 0.5526 MB / 454.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.84e-05/0.2933, allocations: 29 kB / 455 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.444e-05/0.2934, allocations: 59.83 kB / 455 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009138/0.2943, allocations: 0.6296 MB / 455.6 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.164e-05/0.2943, allocations: 0 / 455.6 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.725e-05/0.2944, allocations: 16 kB / 455.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001195/0.2945, allocations: 48.97 kB / 455.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000678/0.2952, allocations: 463.6 kB / 456.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002837/0.298, allocations: 2.526 MB / 458.7 MB, free: 9.168 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004224/0.2985, allocations: 281.2 kB / 459 MB, free: 8.875 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001993/0.2987, allocations: 142.2 kB / 459.1 MB, free: 8.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.727e-05/0.2987, allocations: 0 / 459.1 MB, free: 8.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.709e-05/0.2988, allocations: 54.44 kB / 459.2 MB, free: 8.668 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.323e-06/0.2988, allocations: 0 / 459.2 MB, free: 8.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002699/0.3015, allocations: 1.545 MB / 460.7 MB, free: 7.008 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.426e-05/0.3015, allocations: 77.11 kB / 460.8 MB, free: 6.914 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004392/0.302, allocations: 417.8 kB / 461.2 MB, free: 6.504 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.832e-05/0.302, allocations: 33.7 kB / 461.2 MB, free: 6.465 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002058/0.3022, allocations: 299.5 kB / 461.5 MB, free: 6.168 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.866e-05/0.3023, allocations: 110.4 kB / 461.6 MB, free: 6.059 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.729e-05/0.3024, allocations: 45.7 kB / 461.7 MB, free: 6.008 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.3025, allocations: 354.7 kB / 462 MB, free: 5.652 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002014/0.3028, allocations: 136.8 kB / 462.1 MB, free: 5.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003269/0.3031, allocations: 286.1 kB / 462.4 MB, free: 5.176 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005587/0.3037, allocations: 453.9 kB / 462.9 MB, free: 4.668 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.3037, allocations: 0 / 462.9 MB, free: 4.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001048/0.3047, allocations: 0.6829 MB / 463.5 MB, free: 3.953 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.3048, allocations: 11.94 kB / 463.6 MB, free: 3.941 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/0.3048, allocations: 4 kB / 463.6 MB, free: 3.938 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004174/0.3052, allocations: 145.6 kB / 463.7 MB, free: 3.789 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002684/0.3055, allocations: 76.19 kB / 463.8 MB, free: 3.715 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003133/0.3086, allocations: 3.4 MB / 467.2 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002428/0.3089, allocations: 12 kB / 467.2 MB, free: 32 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.648e-05/0.3089, allocations: 27.92 kB / 467.2 MB, free: 4 kB / 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.0003265/0.3093, allocations: 229.7 kB / 467.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.984e-05/0.3093, allocations: 43.5 kB / 467.5 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009754/0.3103, allocations: 0.5791 MB / 468.1 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.3103, allocations: 4 kB / 468.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000686/0.311, allocations: 494.3 kB / 468.6 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.3111, allocations: 0 / 468.6 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001389/0.3124, allocations: 0.9971 MB / 469.5 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.3125, allocations: 0 / 469.5 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001847/0.3126, allocations: 39.98 kB / 469.6 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002562/0.3129, allocations: 92.91 kB / 469.7 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.185e-05/0.3129, allocations: 11.98 kB / 469.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001879/0.3148, allocations: 1.859 MB / 471.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.793e-06/0.3149, allocations: 7.875 kB / 471.6 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009016/0.3158, allocations: 0.6438 MB / 472.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001406/0.3159, allocations: 144.5 kB / 472.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.474e-05/0.316, allocations: 4 kB / 472.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001786/0.3161, allocations: 11.98 kB / 472.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.652e-05/0.3162, allocations: 39.91 kB / 472.4 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.812e-05/0.3162, allocations: 4 kB / 472.4 MB, free: 10.49 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003025/0.3165, allocations: 303.1 kB / 472.7 MB, free: 10.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3165, allocations: 0 / 472.7 MB, free: 10.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004956/0.3171, allocations: 120 kB / 472.8 MB, free: 10.07 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.001169/0.3182, allocations: 1.177 MB / 474 MB, free: 8.855 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009294/0.3192, allocations: 0.6221 MB / 474.6 MB, free: 8.207 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.3192, allocations: 1.125 kB / 474.6 MB, free: 8.207 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004325/0.3196, allocations: 315.3 kB / 474.9 MB, free: 7.887 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006969/0.3203, allocations: 102.4 kB / 475 MB, free: 7.785 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006292/0.3266, allocations: 5.087 MB / 480.1 MB, free: 2.434 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004811/0.3271, allocations: 0.9128 MB / 481 MB, free: 1.496 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002743/0.3274, allocations: 84.25 kB / 481.1 MB, free: 1.414 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002276/0.3277, allocations: 179.4 kB / 481.3 MB, free: 1.238 MB / 350.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3277, allocations: 0 / 481.3 MB, free: 1.238 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0236/0.3513, allocations: 9.789 MB / 491.1 MB, free: 7.488 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002229/0.3515, allocations: 220.2 kB / 491.3 MB, free: 7.234 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.869/2.22, allocations: 4 kB / 491.3 MB, free: 7.23 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)