Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.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.Generic.Test.ImpedanceTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_ImpedanceTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.ImpedanceTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_ImpedanceTest",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.001364/0.001364, allocations: 90.61 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.001559/0.001559, allocations: 187.6 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.301/1.301, allocations: 223.2 MB / 241.1 MB, free: 368 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1699/0.1699, allocations: 38.08 MB / 330.3 MB, free: 8.969 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004625/0.0004626, allocations: 8 kB / 400.1 MB, free: 34.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1057, allocations: 59.17 MB / 459.2 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.ImpedanceTest): time 0.00318/0.109, allocations: 3.105 MB / 462.3 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001665/0.1107, allocations: 1.365 MB / 463.7 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001111/0.1108, allocations: 7.938 kB / 463.7 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001323/0.1109, allocations: 35.77 kB / 463.7 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004386/0.1114, allocations: 167.4 kB / 463.9 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002299/0.1116, allocations: 103.7 kB / 464 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002119/0.1118, allocations: 151.7 kB / 464.1 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005918/0.1124, allocations: 307 kB / 464.4 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001816/0.1126, allocations: 103.6 kB / 464.6 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001434/0.1128, allocations: 79.69 kB / 464.6 MB, free: 1.895 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.921e-05/0.1128, allocations: 8 kB / 464.6 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003552/0.1132, allocations: 155.7 kB / 464.8 MB, free: 1.734 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.867e-05/0.1133, allocations: 83.78 kB / 464.9 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.815e-05/0.1134, allocations: 65.58 kB / 464.9 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002941/0.1137, allocations: 243.4 kB / 465.2 MB, free: 1.344 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.1137, allocations: 0 / 465.2 MB, free: 1.344 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1137, allocations: 0 / 465.2 MB, free: 1.344 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.1137, allocations: 0 / 465.2 MB, free: 1.344 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.000673/0.1144, allocations: 474.6 kB / 465.6 MB, free: 0.832 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.694e-05/0.1144, allocations: 12.03 kB / 465.6 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.888e-05/0.1145, allocations: 58.55 kB / 465.7 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001226/0.1158, allocations: 95.61 kB / 465.8 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004301/0.1162, allocations: 261.2 kB / 466.1 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.797e-05/0.1162, allocations: 23.84 kB / 466.1 MB, free: 352 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.787e-05/0.1163, allocations: 19.98 kB / 466.1 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007014/0.117, allocations: 314.4 kB / 466.4 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.824e-05/0.1171, allocations: 0 / 466.4 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.586e-05/0.1171, allocations: 7.938 kB / 466.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.594e-05/0.1171, allocations: 23.92 kB / 466.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004307/0.1176, allocations: 283.8 kB / 466.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001858/0.1194, allocations: 1.297 MB / 468 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005838/0.12, allocations: 209.2 kB / 468.2 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.201e-05/0.1201, allocations: 8.047 kB / 468.2 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.115e-05/0.1201, allocations: 42.56 kB / 468.3 MB, free: 14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.793e-06/0.1201, allocations: 0 / 468.3 MB, free: 14 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0012/0.1213, allocations: 434.4 kB / 468.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.383e-05/0.1214, allocations: 81.33 kB / 468.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000202/0.1216, allocations: 190.3 kB / 469 MB, free: 13.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.558e-05/0.1217, allocations: 33.77 kB / 469 MB, free: 13.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001253/0.1218, allocations: 167.7 kB / 469.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.362e-05/0.1219, allocations: 39.39 kB / 469.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.306e-05/0.1219, allocations: 8 kB / 469.2 MB, free: 13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.122, allocations: 326.8 kB / 469.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.956e-05/0.1221, allocations: 55.91 kB / 469.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001383/0.1223, allocations: 153.6 kB / 469.7 MB, free: 12.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001144/0.1224, allocations: 75.97 kB / 469.8 MB, free: 12.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1224, allocations: 3.938 kB / 469.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003991/0.1228, allocations: 261.9 kB / 470.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.1228, allocations: 8 kB / 470.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.677e-06/0.1229, allocations: 4 kB / 470.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002274/0.1231, allocations: 40.77 kB / 470.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001379/0.1232, allocations: 44.31 kB / 470.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001164/0.1244, allocations: 1.358 MB / 471.5 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000112/0.1245, allocations: 11.98 kB / 471.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.02e-05/0.1246, allocations: 8 kB / 471.5 MB, free: 10.47 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (24): * Single equations (assignments): 23 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001715/0.1247, allocations: 153.7 kB / 471.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.537e-05/0.1248, allocations: 23.8 kB / 471.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003922/0.1252, allocations: 183.9 kB / 471.9 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.1252, allocations: 12.05 kB / 471.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.1252, allocations: 0 / 471.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.1252, allocations: 0 / 471.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008574/0.1261, allocations: 0.5562 MB / 472.4 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.1261, allocations: 4.094 kB / 472.4 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001091/0.1262, allocations: 23.98 kB / 472.5 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001921/0.1264, allocations: 36.77 kB / 472.5 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.1265, allocations: 7.953 kB / 472.5 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009337/0.1274, allocations: 1.327 MB / 473.8 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.1274, allocations: 7.969 kB / 473.9 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003937/0.1278, allocations: 334.6 kB / 474.2 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.445e-05/0.1279, allocations: 104.8 kB / 474.3 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.322e-05/0.1279, allocations: 7.938 kB / 474.3 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/0.128, allocations: 11.95 kB / 474.3 MB, free: 7.402 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.168e-05/0.1281, allocations: 11.98 kB / 474.3 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.348e-05/0.1281, allocations: 8 kB / 474.3 MB, free: 7.383 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001139/0.1282, allocations: 140.3 kB / 474.5 MB, free: 7.246 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1282, allocations: 0 / 474.5 MB, free: 7.246 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003546/0.1286, allocations: 52 kB / 474.5 MB, free: 7.195 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 simulation (14): * Single equations (assignments): 12 * 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 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008097/0.1294, allocations: 1.15 MB / 475.7 MB, free: 5.984 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004968/0.1299, allocations: 267.2 kB / 475.9 MB, free: 5.711 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.1299, allocations: 4.125 kB / 475.9 MB, free: 5.707 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002056/0.1301, allocations: 174.6 kB / 476.1 MB, free: 5.523 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002766/0.1304, allocations: 32.06 kB / 476.1 MB, free: 5.492 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002536/0.133, allocations: 3.351 MB / 479.5 MB, free: 2.012 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003356/0.1333, allocations: 0.7676 MB / 480.2 MB, free: 1.219 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001189/0.1334, allocations: 37.5 kB / 480.3 MB, free: 1.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.161e-05/0.1335, allocations: 51.42 kB / 480.3 MB, free: 1.129 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1335, allocations: 0 / 480.3 MB, free: 1.129 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01434/0.1479, allocations: 3.511 MB / 483.8 MB, free: 13.78 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001957/0.1481, allocations: 203.3 kB / 484 MB, free: 13.54 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.72/1.868, allocations: 0 / 484 MB, free: 13.54 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_ImpedanceTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_ImpedanceTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest_res.mat does not exist to compare? outputFormat=mat