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.0009871/0.0009871, allocations: 81.75 kB / 16.31 MB, free: 6.449 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.001185/0.001185, allocations: 180.3 kB / 17.21 MB, free: 6.32 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.624/1.624, allocations: 205.4 MB / 223.4 MB, free: 5.781 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3251/0.3251, allocations: 38.05 MB / 309.7 MB, free: 8.938 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.000556/0.0005561, allocations: 15.94 kB / 376.6 MB, free: 15.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1083, allocations: 56.34 MB / 433 MB, free: 6.73 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.006854/0.1153, allocations: 5.374 MB / 438.3 MB, free: 1.332 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006854/0.1222, allocations: 3.985 MB / 442.3 MB, free: 13.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007334/0.1229, allocations: 35.75 kB / 442.4 MB, free: 13.3 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008373/0.1313, allocations: 4.375 MB / 446.7 MB, free: 8.918 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001042/0.1324, allocations: 358.2 kB / 447.1 MB, free: 8.566 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006337/0.133, allocations: 191.7 kB / 447.3 MB, free: 8.379 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002261/0.1353, allocations: 1.758 MB / 449 MB, free: 6.617 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001054/0.1364, allocations: 0.6421 MB / 449.7 MB, free: 5.938 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004716/0.1369, allocations: 294.7 kB / 450 MB, free: 5.648 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006057/0.1375, allocations: 394.6 kB / 450.3 MB, free: 5.262 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.237e-05/0.1376, allocations: 24 kB / 450.4 MB, free: 5.238 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002086/0.1378, allocations: 39.98 kB / 450.4 MB, free: 5.199 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002606/0.1381, allocations: 219.3 kB / 450.6 MB, free: 4.984 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001982/0.1383, allocations: 145.4 kB / 450.8 MB, free: 4.836 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000617/0.1389, allocations: 0.635 MB / 451.4 MB, free: 4.199 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1389, allocations: 0 / 451.4 MB, free: 4.199 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1389, allocations: 0 / 451.4 MB, free: 4.199 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.992e-05/0.139, allocations: 0 / 451.4 MB, free: 4.199 MB / 382.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.001391/0.1404, allocations: 0.7615 MB / 452.2 MB, free: 3.387 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.1404, allocations: 12.03 kB / 452.2 MB, free: 3.375 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001681/0.1406, allocations: 94.47 kB / 452.3 MB, free: 3.273 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003195/0.1409, allocations: 67.23 kB / 452.3 MB, free: 3.207 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009291/0.1419, allocations: 0.5328 MB / 452.9 MB, free: 2.633 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.874e-05/0.1419, allocations: 36.98 kB / 452.9 MB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.171e-05/0.142, allocations: 40 kB / 452.9 MB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009422/0.1429, allocations: 0.6335 MB / 453.6 MB, free: 1.887 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.678e-05/0.143, allocations: 7.984 kB / 453.6 MB, free: 1.879 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.705e-05/0.143, allocations: 19.98 kB / 453.6 MB, free: 1.859 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001215/0.1431, allocations: 48.92 kB / 453.6 MB, free: 1.812 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007196/0.1439, allocations: 463.6 kB / 454.1 MB, free: 1.359 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2106/0.3545, allocations: 2.515 MB / 456.6 MB, free: 51.13 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004578/0.355, allocations: 281 kB / 456.9 MB, free: 51.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001993/0.3552, allocations: 137.5 kB / 457 MB, free: 51.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.934e-05/0.3552, allocations: 3.844 kB / 457 MB, free: 51.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.349e-05/0.3553, allocations: 43.39 kB / 457.1 MB, free: 51.03 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 2.946e-06/0.3553, allocations: 0 / 457.1 MB, free: 51.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=32): time 0.002562/0.3578, allocations: 1.584 MB / 458.6 MB, free: 50.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.311e-05/0.3579, allocations: 81.16 kB / 458.7 MB, free: 50.29 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003856/0.3583, allocations: 410.3 kB / 459.1 MB, free: 50.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/0.3583, allocations: 32.05 kB / 459.2 MB, free: 50.15 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001908/0.3585, allocations: 298.9 kB / 459.5 MB, free: 49.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.036e-05/0.3586, allocations: 112 kB / 459.6 MB, free: 49.91 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.914e-05/0.3586, allocations: 12.81 kB / 459.6 MB, free: 49.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.545e-05/0.3587, allocations: 353.4 kB / 459.9 MB, free: 49.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001797/0.3589, allocations: 137.2 kB / 460.1 MB, free: 49.6 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002088/0.3591, allocations: 279 kB / 460.3 MB, free: 49.43 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002209/0.3593, allocations: 188.5 kB / 460.5 MB, free: 49.42 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3594, allocations: 3.25 kB / 460.5 MB, free: 49.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00082/0.3602, allocations: 0.6748 MB / 461.2 MB, free: 49.24 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.3602, allocations: 8.562 kB / 461.2 MB, free: 49.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/0.3602, allocations: 2.938 kB / 461.2 MB, free: 49.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003734/0.3606, allocations: 146.9 kB / 461.3 MB, free: 49.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002597/0.3609, allocations: 78.58 kB / 461.4 MB, free: 49.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002255/0.3631, allocations: 3.391 MB / 464.8 MB, free: 46.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00024/0.3634, allocations: 17.27 kB / 464.8 MB, free: 46.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.692e-05/0.3634, allocations: 21.42 kB / 464.8 MB, free: 46.68 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002987/0.3638, allocations: 236.3 kB / 465.1 MB, free: 46.56 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.86e-05/0.3638, allocations: 42.22 kB / 465.1 MB, free: 46.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008893/0.3647, allocations: 0.5766 MB / 465.7 MB, free: 46.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.3647, allocations: 3.031 kB / 465.7 MB, free: 46.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0006856/0.3654, allocations: 497.8 kB / 466.2 MB, free: 46.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.3655, allocations: 2.844 kB / 466.2 MB, free: 46.18 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001302/0.3668, allocations: 0.9891 MB / 467.2 MB, free: 45.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.3668, allocations: 3.156 kB / 467.2 MB, free: 45.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000184/0.367, allocations: 43.42 kB / 467.2 MB, free: 45.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002147/0.3672, allocations: 90.08 kB / 467.3 MB, free: 45.79 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.205e-05/0.3672, allocations: 14.94 kB / 467.3 MB, free: 45.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001307/0.3685, allocations: 1.86 MB / 469.2 MB, free: 44.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.3686, allocations: 3.469 kB / 469.2 MB, free: 44.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007295/0.3693, allocations: 0.6423 MB / 469.8 MB, free: 43.86 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001268/0.3694, allocations: 138.6 kB / 470 MB, free: 43.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.234e-05/0.3695, allocations: 12.72 kB / 470 MB, free: 43.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001735/0.3697, allocations: 7.156 kB / 470 MB, free: 43.72 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.456e-05/0.3697, allocations: 28.84 kB / 470 MB, free: 43.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.28e-05/0.3697, allocations: 12.88 kB / 470 MB, free: 43.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002762/0.37, allocations: 294.2 kB / 470.3 MB, free: 43.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.37, allocations: 0 / 470.3 MB, free: 43.57 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005621/0.3706, allocations: 123.3 kB / 470.4 MB, free: 43.55 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009262/0.3715, allocations: 1.183 MB / 471.6 MB, free: 42.66 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000892/0.3724, allocations: 0.6087 MB / 472.2 MB, free: 42.29 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.3725, allocations: 0 / 472.2 MB, free: 42.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003828/0.3729, allocations: 313 kB / 472.5 MB, free: 42.1 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000614/0.3735, allocations: 103.1 kB / 472.6 MB, free: 42.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004827/0.3783, allocations: 3.294 MB / 475.9 MB, free: 40.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003799/0.3787, allocations: 0.9258 MB / 476.9 MB, free: 39.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002579/0.379, allocations: 80.11 kB / 476.9 MB, free: 39.49 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002057/0.3792, allocations: 179.6 kB / 477.1 MB, free: 39.36 MB / 382.1 MB Notification: Performance of SimCode: time 4.3e-07/0.3792, allocations: 4 kB / 477.1 MB, free: 39.35 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02339/0.4026, allocations: 9.902 MB / 487 MB, free: 38.51 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001788/0.4028, allocations: 208.6 kB / 487.2 MB, free: 38.27 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.979/2.382, allocations: 6.906 kB / 487.2 MB, free: 38.27 MB / 382.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/linux/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) Environment - environmentSimulation: