Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.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.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source",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.0008635/0.0008635, allocations: 94.08 kB / 16.3 MB, free: 5.996 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.0009579/0.0009577, allocations: 179.8 kB / 17.2 MB, free: 5.898 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.243/1.243, allocations: 223.2 MB / 241.1 MB, free: 14.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1595/0.1595, allocations: 38.09 MB / 330.3 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002871/0.0002872, allocations: 12 kB / 400.1 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09213/0.09243, allocations: 59.16 MB / 459.2 MB, free: 7.32 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.004237/0.09671, allocations: 4.287 MB / 463.5 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002027/0.09876, allocations: 1.614 MB / 465.1 MB, free: 1.391 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001662/0.09894, allocations: 27.81 kB / 465.2 MB, free: 1.363 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001581/0.09911, allocations: 75.52 kB / 465.2 MB, free: 1.289 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004745/0.09959, allocations: 231.3 kB / 465.5 MB, free: 1.062 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004821/0.1001, allocations: 231.4 kB / 465.7 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003349/0.1004, allocations: 323.8 kB / 466 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005668/0.101, allocations: 418.5 kB / 466.4 MB, free: 80 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002446/0.1013, allocations: 187.4 kB / 466.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003357/0.1016, allocations: 271.2 kB / 466.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.121e-05/0.1017, allocations: 20 kB / 466.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002727/0.1019, allocations: 151.8 kB / 467 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001651/0.1021, allocations: 191.5 kB / 467.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.362e-05/0.1022, allocations: 105.5 kB / 467.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004272/0.1026, allocations: 0.4909 MB / 467.8 MB, free: 14.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.783e-06/0.1027, allocations: 0 / 467.8 MB, free: 14.67 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1027, allocations: 0 / 467.8 MB, free: 14.67 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.1027, allocations: 0 / 467.8 MB, free: 14.67 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001075/0.1038, allocations: 0.6918 MB / 468.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.094e-05/0.1038, allocations: 15.97 kB / 468.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.721e-05/0.1039, allocations: 86.5 kB / 468.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005704/0.1045, allocations: 87.38 kB / 468.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005655/0.1051, allocations: 402 kB / 469.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.425e-05/0.1051, allocations: 29 kB / 469.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.1052, allocations: 51.88 kB / 469.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008559/0.1061, allocations: 0.6875 MB / 469.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.1061, allocations: 4 kB / 469.8 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.123e-05/0.1061, allocations: 16 kB / 469.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001918/0.1063, allocations: 68.94 kB / 469.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008801/0.1072, allocations: 0.6635 MB / 470.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003118/0.1104, allocations: 2.642 MB / 473.2 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004574/0.1108, allocations: 317.3 kB / 473.5 MB, free: 8.625 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.6e-05/0.1109, allocations: 8.047 kB / 473.5 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.006e-05/0.1109, allocations: 42.48 kB / 473.6 MB, free: 8.566 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 1.623e-06/0.1109, allocations: 0 / 473.6 MB, free: 8.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.001769/0.1127, allocations: 1.443 MB / 475 MB, free: 7.035 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.406e-05/0.1127, allocations: 85.23 kB / 475.1 MB, free: 6.934 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002474/0.113, allocations: 295.2 kB / 475.4 MB, free: 6.633 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.9e-05/0.113, allocations: 33.69 kB / 475.4 MB, free: 6.594 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001336/0.1132, allocations: 247.6 kB / 475.7 MB, free: 6.344 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.568e-05/0.1133, allocations: 149.9 kB / 475.8 MB, free: 6.195 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.803e-05/0.1133, allocations: 4 kB / 475.8 MB, free: 6.191 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.1134, allocations: 342.8 kB / 476.2 MB, free: 5.848 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002395/0.1137, allocations: 188.9 kB / 476.3 MB, free: 5.664 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003089/0.114, allocations: 329.2 kB / 476.7 MB, free: 5.289 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003011/0.1143, allocations: 251.8 kB / 476.9 MB, free: 5.043 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.1143, allocations: 4 kB / 476.9 MB, free: 5.039 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001041/0.1153, allocations: 0.6586 MB / 477.6 MB, free: 4.367 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.1154, allocations: 8 kB / 477.6 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007251/0.1161, allocations: 491.4 kB / 478.1 MB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003741/0.1165, allocations: 121.9 kB / 478.2 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002749/0.1168, allocations: 87.81 kB / 478.3 MB, free: 3.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002349/0.1191, allocations: 3.057 MB / 481.3 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002095/0.1194, allocations: 23.97 kB / 481.3 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.816e-05/0.1194, allocations: 27.89 kB / 481.4 MB, free: 296 kB / 350.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 (45): * Single equations (assignments): 41 * Array equations: 2 * 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 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001976/0.1196, allocations: 204.8 kB / 481.6 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.177e-05/0.1197, allocations: 39.56 kB / 481.6 MB, free: 44 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006618/0.1203, allocations: 464.8 kB / 482.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.212e-05/0.1204, allocations: 16 kB / 482.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.1204, allocations: 4 kB / 482.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.1204, allocations: 3.984 kB / 482.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001313/0.1217, allocations: 1.013 MB / 483.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.1217, allocations: 0 / 483.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003212/0.1221, allocations: 67.95 kB / 483.2 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.1221, allocations: 4 kB / 483.2 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.514e-05/0.1221, allocations: 11.98 kB / 483.2 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.1221, allocations: 4 kB / 483.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.1221, allocations: 3.953 kB / 483.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009124/0.123, allocations: 0.7835 MB / 484 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001665/0.1232, allocations: 132.8 kB / 484.1 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.431e-05/0.1233, allocations: 11.98 kB / 484.1 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001854/0.1235, allocations: 15.98 kB / 484.1 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.935e-05/0.1235, allocations: 15.97 kB / 484.2 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.193e-05/0.1235, allocations: 12 kB / 484.2 MB, free: 13.36 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002039/0.1238, allocations: 203.1 kB / 484.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1238, allocations: 3.938 kB / 484.4 MB, free: 13.15 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004297/0.1242, allocations: 116 kB / 484.5 MB, free: 13.04 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * 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 (30): * Single equations (assignments): 27 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001287/0.1255, allocations: 1.55 MB / 486 MB, free: 11.44 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001042/0.1265, allocations: 0.7086 MB / 486.7 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.1266, allocations: 4 kB / 486.7 MB, free: 10.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002548/0.1268, allocations: 211.8 kB / 486.9 MB, free: 10.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003445/0.1272, allocations: 53.39 kB / 487 MB, free: 10.45 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004611/0.1318, allocations: 5.667 MB / 492.7 MB, free: 4.637 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004168/0.1322, allocations: 0.8866 MB / 493.6 MB, free: 3.727 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002508/0.1325, allocations: 103.2 kB / 493.7 MB, free: 3.621 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001777/0.1327, allocations: 139.4 kB / 493.8 MB, free: 3.484 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1327, allocations: 0 / 493.8 MB, free: 3.484 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01865/0.1513, allocations: 7.724 MB / 0.4898 GB, free: 11.93 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002722/0.1516, allocations: 207.8 kB / 0.49 GB, free: 11.69 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.802/1.953, allocations: 0 / 0.49 GB, free: 11.69 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat does not exist to compare? outputFormat=mat