Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.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.Line,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Line,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Line",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.0009551/0.0009552, allocations: 88.14 kB / 16.31 MB, free: 6.461 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.001111/0.001111, allocations: 178.9 kB / 17.21 MB, free: 6.336 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.535/1.535, allocations: 223.2 MB / 241.2 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3765/0.3765, allocations: 38.07 MB / 330.4 MB, free: 14.21 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005007/0.0005007, allocations: 8 kB / 400.2 MB, free: 9.18 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3176/0.3181, allocations: 59.16 MB / 459.3 MB, free: 30.21 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Line): time 0.006635/0.3248, allocations: 5.323 MB / 464.6 MB, free: 26.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00389/0.3288, allocations: 1.893 MB / 466.5 MB, free: 25.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006165/0.3294, allocations: 34.38 kB / 466.6 MB, free: 25.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005555/0.33, allocations: 142.2 kB / 466.7 MB, free: 24.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001008/0.331, allocations: 336.1 kB / 467 MB, free: 24.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001269/0.3323, allocations: 344.6 kB / 467.4 MB, free: 24.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001261/0.3336, allocations: 0.8669 MB / 468.2 MB, free: 24.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001015/0.3346, allocations: 0.5627 MB / 468.8 MB, free: 23.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005927/0.3352, allocations: 288.7 kB / 469.1 MB, free: 23.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008213/0.336, allocations: 450.4 kB / 469.5 MB, free: 23.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.939e-05/0.3361, allocations: 26.38 kB / 469.5 MB, free: 23.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004179/0.3366, allocations: 113.5 kB / 469.7 MB, free: 23.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003911/0.337, allocations: 262 kB / 469.9 MB, free: 23.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001838/0.3372, allocations: 131.8 kB / 470 MB, free: 23.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009296/0.3381, allocations: 0.609 MB / 470.7 MB, free: 23.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.3381, allocations: 3.938 kB / 470.7 MB, free: 23.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.877e-06/0.3381, allocations: 5 kB / 470.7 MB, free: 23.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.3381, allocations: 0 / 470.7 MB, free: 23.45 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: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.001588/0.3397, allocations: 0.8058 MB / 471.5 MB, free: 22.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.553e-05/0.3398, allocations: 9.172 kB / 471.5 MB, free: 22.86 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001501/0.3399, allocations: 101.7 kB / 471.6 MB, free: 22.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009886/0.3409, allocations: 135.1 kB / 471.7 MB, free: 22.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001054/0.342, allocations: 0.5001 MB / 472.2 MB, free: 22.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.988e-05/0.3421, allocations: 38.77 kB / 472.2 MB, free: 22.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004039/0.3425, allocations: 126.5 kB / 472.4 MB, free: 22.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00145/0.3439, allocations: 0.863 MB / 473.2 MB, free: 21.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.221e-05/0.344, allocations: 6.062 kB / 473.2 MB, free: 21.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.812e-05/0.344, allocations: 18.25 kB / 473.3 MB, free: 21.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003963/0.3444, allocations: 72.55 kB / 473.3 MB, free: 21.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001094/0.3455, allocations: 0.6155 MB / 473.9 MB, free: 21.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004214/0.3498, allocations: 3.795 MB / 477.7 MB, free: 18.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001022/0.3508, allocations: 0.5369 MB / 478.3 MB, free: 18.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004551/0.3513, allocations: 322.8 kB / 478.6 MB, free: 18.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.864e-05/0.3514, allocations: 11.09 kB / 478.6 MB, free: 18.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.586e-05/0.3514, allocations: 41.42 kB / 478.6 MB, free: 18.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.575e-06/0.3514, allocations: 0 / 478.6 MB, free: 18.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.003235/0.3546, allocations: 1.84 MB / 480.5 MB, free: 17.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.011e-05/0.3547, allocations: 87.17 kB / 480.6 MB, free: 17.13 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005147/0.3552, allocations: 419.2 kB / 481 MB, free: 16.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.87e-05/0.3553, allocations: 32.08 kB / 481 MB, free: 16.83 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001657/0.3555, allocations: 326.1 kB / 481.3 MB, free: 16.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001476/0.3556, allocations: 200.3 kB / 481.5 MB, free: 16.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.081e-05/0.3557, allocations: 10.03 kB / 481.5 MB, free: 16.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.081e-05/0.3558, allocations: 371.8 kB / 481.9 MB, free: 16.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005502/0.3563, allocations: 372.8 kB / 482.3 MB, free: 15.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006135/0.3569, allocations: 0.5961 MB / 482.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006652/0.3576, allocations: 478.2 kB / 483.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.67e-06/0.3576, allocations: 2.625 kB / 483.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003595/0.3612, allocations: 2 MB / 485.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.3613, allocations: 11.94 kB / 485.3 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.451e-05/0.3613, allocations: 8 kB / 485.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001889/0.3632, allocations: 0.9579 MB / 486.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003959/0.3636, allocations: 119.8 kB / 486.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007713/0.3713, allocations: 7.373 MB / 493.8 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006043/0.372, allocations: 40.03 kB / 493.8 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.841e-05/0.3721, allocations: 44.05 kB / 493.9 MB, free: 4.441 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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 (60): * Single equations (assignments): 58 * 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 {(1,100.0%) 6,(23,24.6%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003674/0.3724, allocations: 245.5 kB / 494.1 MB, free: 4.191 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.007e-05/0.3725, allocations: 47.44 kB / 494.2 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001053/0.3736, allocations: 0.7296 MB / 494.9 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.3736, allocations: 8 kB / 494.9 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-06/0.3736, allocations: 0 / 494.9 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.3736, allocations: 3.984 kB / 494.9 MB, free: 3.395 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002112/0.3757, allocations: 1.532 MB / 496.4 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.3758, allocations: 4.062 kB / 496.4 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000954/0.3767, allocations: 187.9 kB / 496.6 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.418e-06/0.3767, allocations: 4 kB / 496.6 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.454e-05/0.3768, allocations: 27.98 kB / 496.7 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.42e-06/0.3768, allocations: 4 kB / 496.7 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3768, allocations: 0 / 496.7 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001122/0.378, allocations: 1.003 MB / 497.7 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001356/0.3781, allocations: 120.5 kB / 497.8 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/0.3782, allocations: 39.91 kB / 497.8 MB, free: 372 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003263/0.3786, allocations: 23.97 kB / 497.8 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.812e-05/0.3786, allocations: 36.34 kB / 497.9 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.738e-05/0.3787, allocations: 19.98 kB / 497.9 MB, free: 292 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002467/0.3789, allocations: 275.1 kB / 498.2 MB, free: 20 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3789, allocations: 4 kB / 498.2 MB, free: 16 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.001033/0.38, allocations: 212 kB / 498.4 MB, free: 15.8 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 21 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.v[3,1],line.v[3,2],line.v[3,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4],line.i[3,1],line.i[3,2],line.i[3,3],line.i[3,4]) * 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 (52): * Single equations (assignments): 51 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00173/0.3817, allocations: 1.558 MB / 499.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00266/0.3844, allocations: 1.445 MB / 0.4896 GB, free: 12.74 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.3844, allocations: 4 kB / 0.4896 GB, free: 12.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004698/0.3849, allocations: 302.3 kB / 0.4899 GB, free: 12.44 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007739/0.3857, allocations: 135.1 kB / 0.49 GB, free: 12.31 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01187/0.3976, allocations: 7.074 MB / 0.497 GB, free: 5.066 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007032/0.3983, allocations: 0.9843 MB / 0.4979 GB, free: 4.055 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006679/0.399, allocations: 200.6 kB / 0.4981 GB, free: 3.855 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004256/0.3994, allocations: 239.3 kB / 0.4983 GB, free: 3.621 MB / 366.1 MB Notification: Performance of SimCode: time 1.353e-06/0.3994, allocations: 0 / 0.4983 GB, free: 3.621 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03712/0.4366, allocations: 16.5 MB / 0.5144 GB, free: 3.328 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002242/0.4368, allocations: 208.7 kB / 0.5146 GB, free: 3.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.114/2.551, allocations: 0 / 0.5146 GB, free: 3.09 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Line_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Line.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Line_res.mat does not exist to compare? outputFormat=mat