Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines",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.0009087/0.0009085, allocations: 89.27 kB / 16.3 MB, free: 6.133 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.00103/0.00103, allocations: 184.8 kB / 17.2 MB, free: 6.016 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.265/1.265, allocations: 223.2 MB / 241.1 MB, free: 14.67 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1617/0.1617, allocations: 38.09 MB / 330.3 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002765/0.0002765, allocations: 12 kB / 400.1 MB, free: 34.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09464/0.09493, allocations: 59.16 MB / 459.2 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.005331/0.1003, allocations: 5.289 MB / 464.5 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005232/0.1056, allocations: 4.077 MB / 468.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003527/0.1059, allocations: 31.75 kB / 468.6 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003568/0.1095, allocations: 1.669 MB / 470.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000649/0.1102, allocations: 279.1 kB / 470.6 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005509/0.1107, allocations: 231.5 kB / 470.8 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000491/0.1112, allocations: 483.4 kB / 471.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006388/0.1119, allocations: 498.6 kB / 471.8 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002637/0.1122, allocations: 259 kB / 472 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000334/0.1125, allocations: 278.9 kB / 472.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.773e-05/0.1126, allocations: 27.94 kB / 472.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001713/0.1127, allocations: 71.94 kB / 472.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002049/0.113, allocations: 235.4 kB / 472.6 MB, free: 9.883 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001081/0.1131, allocations: 137.4 kB / 472.7 MB, free: 9.742 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004682/0.1135, allocations: 0.5455 MB / 473.3 MB, free: 9.195 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.1136, allocations: 0 / 473.3 MB, free: 9.195 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1136, allocations: 0 / 473.3 MB, free: 9.195 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.749e-06/0.1136, allocations: 0 / 473.3 MB, free: 9.195 MB / 350.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.00131/0.1149, allocations: 0.8042 MB / 474.1 MB, free: 8.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.024e-05/0.1149, allocations: 8.031 kB / 474.1 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.289e-05/0.115, allocations: 86.5 kB / 474.2 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000396/0.1154, allocations: 103.1 kB / 474.3 MB, free: 8.137 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009053/0.1163, allocations: 0.5171 MB / 474.8 MB, free: 7.578 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.616e-05/0.1164, allocations: 33 kB / 474.8 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.998e-05/0.1165, allocations: 55.97 kB / 474.9 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000816/0.1173, allocations: 0.6374 MB / 475.5 MB, free: 6.812 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.1173, allocations: 4 kB / 475.5 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.211e-05/0.1174, allocations: 19.98 kB / 475.5 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000127/0.1175, allocations: 52.95 kB / 475.6 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006735/0.1182, allocations: 483.6 kB / 476.1 MB, free: 6.266 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003022/0.1212, allocations: 2.547 MB / 478.6 MB, free: 3.582 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004264/0.1217, allocations: 319.6 kB / 478.9 MB, free: 3.242 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.57e-05/0.1217, allocations: 4.062 kB / 478.9 MB, free: 3.238 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.677e-05/0.1217, allocations: 46.95 kB / 479 MB, free: 3.184 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 1.472e-06/0.1217, allocations: 0 / 479 MB, free: 3.184 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002169/0.1239, allocations: 1.626 MB / 480.6 MB, free: 1.422 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.334e-05/0.124, allocations: 106.8 kB / 480.7 MB, free: 1.293 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003996/0.1244, allocations: 417.9 kB / 481.1 MB, free: 0.875 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.41e-05/0.1244, allocations: 41.64 kB / 481.2 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001987/0.1246, allocations: 303.6 kB / 481.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.122e-05/0.1247, allocations: 126.3 kB / 481.6 MB, free: 412 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.806e-05/0.1247, allocations: 8.031 kB / 481.6 MB, free: 404 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.1249, allocations: 362.7 kB / 481.9 MB, free: 32 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002457/0.1251, allocations: 161.1 kB / 482.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003153/0.1255, allocations: 301.8 kB / 482.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002932/0.1258, allocations: 207.6 kB / 482.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-06/0.1258, allocations: 3.938 kB / 482.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001218/0.127, allocations: 0.8034 MB / 483.4 MB, free: 14.47 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.127, allocations: 4 kB / 483.4 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.127, allocations: 4 kB / 483.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000579/0.1276, allocations: 208.8 kB / 483.6 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002814/0.1279, allocations: 72.11 kB / 483.7 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004051/0.132, allocations: 3.964 MB / 487.6 MB, free: 9.961 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002767/0.1323, allocations: 23.94 kB / 487.7 MB, free: 9.938 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.422e-05/0.1323, allocations: 20 kB / 487.7 MB, free: 9.918 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 38 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {3 10} Notification: Performance of prepare postOptimizeDAE: time 0.000281/0.1326, allocations: 225.7 kB / 487.9 MB, free: 9.688 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.355e-05/0.1327, allocations: 47.44 kB / 488 MB, free: 9.641 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008646/0.1336, allocations: 0.6457 MB / 488.6 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.1336, allocations: 7.984 kB / 488.6 MB, free: 8.938 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.1336, allocations: 0 / 488.6 MB, free: 8.938 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.1336, allocations: 7.938 kB / 488.6 MB, free: 8.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001554/0.1352, allocations: 1.195 MB / 489.8 MB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.1352, allocations: 0 / 489.8 MB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004008/0.1356, allocations: 79.95 kB / 489.9 MB, free: 7.555 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001423/0.1357, allocations: 53.67 kB / 489.9 MB, free: 7.496 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.773e-05/0.1358, allocations: 11.98 kB / 490 MB, free: 7.484 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001743/0.1375, allocations: 2.642 MB / 492.6 MB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.1375, allocations: 3.984 kB / 492.6 MB, free: 4.574 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001053/0.1386, allocations: 1.003 MB / 493.6 MB, free: 3.477 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001761/0.1388, allocations: 144.5 kB / 493.7 MB, free: 3.316 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.364e-05/0.1388, allocations: 8 kB / 493.8 MB, free: 3.309 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000236/0.1391, allocations: 11.98 kB / 493.8 MB, free: 3.297 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.583e-05/0.1391, allocations: 27.92 kB / 493.8 MB, free: 3.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.443e-05/0.1392, allocations: 15.98 kB / 493.8 MB, free: 3.254 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003042/0.1395, allocations: 291.1 kB / 494.1 MB, free: 2.973 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1395, allocations: 0 / 494.1 MB, free: 2.973 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005628/0.1401, allocations: 136 kB / 494.2 MB, free: 2.84 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asynchron.i[3],asynchron.phi_el,asynchron.psi_s[1],asynchron.psi_s[2],asynchron.psi_rd[1],asynchron.psi_rq[1],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 (35): * Single equations (assignments): 32 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001394/0.1415, allocations: 1.819 MB / 496 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001181/0.1427, allocations: 0.7208 MB / 496.8 MB, free: 184 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1427, allocations: 320 / 496.8 MB, free: 184 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005036/0.1432, allocations: 417.3 kB / 497.2 MB, free: 15.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005402/0.1437, allocations: 114 kB / 497.3 MB, free: 15.64 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005975/0.1497, allocations: 6.687 MB / 0.4922 GB, free: 8.781 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005724/0.1503, allocations: 0.9561 MB / 0.4931 GB, free: 7.801 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003104/0.1506, allocations: 100.4 kB / 0.4932 GB, free: 7.703 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002422/0.1509, allocations: 195.4 kB / 0.4934 GB, free: 7.512 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1509, allocations: 4 kB / 0.4934 GB, free: 7.508 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1864/0.3372, allocations: 11.38 MB / 0.5045 GB, free: 54.2 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001449/0.3374, allocations: 214.3 kB / 0.5047 GB, free: 53.96 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.82/2.157, allocations: 1.406 kB / 0.5047 GB, free: 53.96 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines_res.mat does not exist to compare? outputFormat=mat