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.001305/0.001305, allocations: 108.3 kB / 16.51 MB, free: 6.707 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.001438/0.001438, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.296/1.296, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1614/0.1614, allocations: 38.04 MB / 329.3 MB, free: 9.09 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 66 kB / 398.2 MB, free: 34.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1085, allocations: 58.06 MB / 456.2 MB, free: 8.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.ImpedanceTest): time 0.005547/0.1141, allocations: 3.677 MB / 459.9 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002681/0.1168, allocations: 1.512 MB / 461.4 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001723/0.117, allocations: 11.94 kB / 461.4 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008688/0.1179, allocations: 235.2 kB / 461.7 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007237/0.1186, allocations: 267.1 kB / 461.9 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003245/0.119, allocations: 95.77 kB / 462 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006269/0.1196, allocations: 0.5651 MB / 462.6 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003549/0.12, allocations: 138.1 kB / 462.7 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002429/0.1202, allocations: 127.4 kB / 462.9 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002768/0.1205, allocations: 167.4 kB / 463 MB, free: 1.641 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.045e-05/0.1206, allocations: 12 kB / 463 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006844/0.1213, allocations: 375.1 kB / 463.4 MB, free: 1.262 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001392/0.1214, allocations: 99.7 kB / 463.5 MB, free: 1.164 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001414/0.1216, allocations: 103.5 kB / 463.6 MB, free: 1.062 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000553/0.1221, allocations: 362.8 kB / 463.9 MB, free: 0.707 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1221, allocations: 0 / 463.9 MB, free: 0.707 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1222, allocations: 0 / 463.9 MB, free: 0.707 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.702e-06/0.1222, allocations: 0 / 463.9 MB, free: 0.707 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.0008373/0.123, allocations: 0.5104 MB / 464.5 MB, free: 152 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.202e-05/0.1231, allocations: 8.031 kB / 464.5 MB, free: 144 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.946e-05/0.1232, allocations: 54.72 kB / 464.5 MB, free: 80 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001159/0.1243, allocations: 96.59 kB / 464.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003735/0.1247, allocations: 248.5 kB / 464.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.119e-05/0.1248, allocations: 24.02 kB / 464.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.529e-05/0.1248, allocations: 23.97 kB / 464.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000616/0.1254, allocations: 310.4 kB / 465.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.224e-05/0.1255, allocations: 4 kB / 465.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.063e-05/0.1255, allocations: 7.938 kB / 465.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.991e-05/0.1256, allocations: 15.98 kB / 465.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005747/0.1261, allocations: 287.8 kB / 465.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002055/0.1282, allocations: 1.301 MB / 466.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007366/0.129, allocations: 213.1 kB / 467 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001193/0.1291, allocations: 65.75 kB / 467.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.748e-05/0.1291, allocations: 0 / 467.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.004e-05/0.1292, allocations: 38.5 kB / 467.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.573e-06/0.1292, allocations: 0 / 467.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.001181/0.1304, allocations: 436.4 kB / 467.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.36e-05/0.1305, allocations: 81.23 kB / 467.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002233/0.1307, allocations: 198.2 kB / 467.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.318e-05/0.1307, allocations: 29.7 kB / 467.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.1309, allocations: 155.8 kB / 468 MB, free: 12.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.639e-05/0.1309, allocations: 51.28 kB / 468.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.183e-05/0.131, allocations: 53.61 kB / 468.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.1312, allocations: 330.8 kB / 468.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.588e-05/0.1313, allocations: 55.97 kB / 468.5 MB, free: 11.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001438/0.1314, allocations: 149.6 kB / 468.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002528/0.1317, allocations: 228.7 kB / 468.9 MB, free: 11.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1317, allocations: 0 / 468.9 MB, free: 11.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004245/0.1321, allocations: 261.9 kB / 469.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.1322, allocations: 6.031 kB / 469.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.477e-06/0.1322, allocations: 7.984 kB / 469.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002428/0.1324, allocations: 53.14 kB / 469.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001451/0.1326, allocations: 43.97 kB / 469.2 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001222/0.1338, allocations: 1.335 MB / 470.6 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001087/0.1339, allocations: 12.05 kB / 470.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.969e-05/0.1339, allocations: 12 kB / 470.6 MB, free: 9.5 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001533/0.1341, allocations: 157.7 kB / 470.7 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.589e-05/0.1342, allocations: 19.8 kB / 470.7 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003438/0.1345, allocations: 180 kB / 470.9 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.1345, allocations: 11.98 kB / 470.9 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-06/0.1345, allocations: 0 / 470.9 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.1345, allocations: 0 / 470.9 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007619/0.1353, allocations: 0.5569 MB / 471.5 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.1353, allocations: 4.094 kB / 471.5 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.085e-05/0.1354, allocations: 23.92 kB / 471.5 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001305/0.1356, allocations: 32.83 kB / 471.6 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.463e-05/0.1356, allocations: 8 kB / 471.6 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009263/0.1365, allocations: 1.331 MB / 472.9 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1365, allocations: 0 / 472.9 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003631/0.1369, allocations: 295.6 kB / 473.2 MB, free: 6.648 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.353e-05/0.137, allocations: 96.92 kB / 473.3 MB, free: 6.535 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.124e-05/0.137, allocations: 0 / 473.3 MB, free: 6.535 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/0.1371, allocations: 11.98 kB / 473.3 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.138e-05/0.1371, allocations: 11.98 kB / 473.3 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.1372, allocations: 4 kB / 473.3 MB, free: 6.508 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001066/0.1373, allocations: 148.3 kB / 473.4 MB, free: 6.363 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1373, allocations: 0 / 473.4 MB, free: 6.363 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003288/0.1376, allocations: 48 kB / 473.5 MB, free: 6.316 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006377/0.1382, allocations: 0.8407 MB / 474.3 MB, free: 5.434 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005383/0.1388, allocations: 267.1 kB / 474.6 MB, free: 5.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1388, allocations: 4 kB / 474.6 MB, free: 5.156 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002751/0.1391, allocations: 174.6 kB / 474.8 MB, free: 4.973 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004942/0.1396, allocations: 35.86 kB / 474.8 MB, free: 4.938 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003588/0.1432, allocations: 2.429 MB / 477.2 MB, free: 2.312 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004506/0.1437, allocations: 0.7557 MB / 478 MB, free: 1.527 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001831/0.1439, allocations: 49.45 kB / 478 MB, free: 1.477 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001117/0.144, allocations: 55.41 kB / 478.1 MB, free: 1.422 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.144, allocations: 0 / 478.1 MB, free: 1.422 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01852/0.1625, allocations: 3.642 MB / 481.7 MB, free: 13.9 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002758/0.1629, allocations: 236.3 kB / 482 MB, free: 13.64 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.673/1.836, allocations: 3.938 kB / 482 MB, free: 13.64 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/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) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.ImpedanceTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches