Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.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.Precalculation.Z_matrixEqCirc2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2",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.001314/0.001314, allocations: 107.1 kB / 16.92 MB, free: 5.777 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.001531/0.001531, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.322/1.322, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1717/0.1717, allocations: 38.04 MB / 329.7 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 56.05 kB / 398.9 MB, free: 33.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09447/0.09573, allocations: 58.08 MB / 457 MB, free: 7.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2): time 0.003305/0.09907, allocations: 2.042 MB / 459 MB, free: 5.918 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006786/0.09977, allocations: 0.526 MB / 459.5 MB, free: 5.391 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.322e-05/0.09983, allocations: 7.938 kB / 459.6 MB, free: 5.383 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001225/0.09995, allocations: 7.922 kB / 459.6 MB, free: 5.375 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.833e-05/0.1, allocations: 23.91 kB / 459.6 MB, free: 5.352 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003072/0.1004, allocations: 71.78 kB / 459.7 MB, free: 5.281 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001054/0.1005, allocations: 59.77 kB / 459.7 MB, free: 5.223 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.423e-05/0.1005, allocations: 0 / 459.7 MB, free: 5.223 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.158e-05/0.1006, allocations: 31.84 kB / 459.7 MB, free: 5.191 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.675e-05/0.1007, allocations: 27.91 kB / 459.8 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.127e-06/0.1007, allocations: 0 / 459.8 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001647/0.1008, allocations: 75.84 kB / 459.8 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.139e-05/0.1009, allocations: 35.84 kB / 459.9 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.573e-05/0.1009, allocations: 31.73 kB / 459.9 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001748/0.1011, allocations: 123.8 kB / 460 MB, free: 4.902 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.1011, allocations: 0 / 460 MB, free: 4.902 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.1011, allocations: 4 kB / 460 MB, free: 4.898 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.1012, allocations: 3.938 kB / 460 MB, free: 4.895 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0003774/0.1015, allocations: 436.8 kB / 460.5 MB, free: 4.414 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.1016, allocations: 11.89 kB / 460.5 MB, free: 4.402 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.958e-05/0.1016, allocations: 42.73 kB / 460.5 MB, free: 4.352 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.233e-05/0.1017, allocations: 12.75 kB / 460.5 MB, free: 4.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.1018, allocations: 184.1 kB / 460.7 MB, free: 4.121 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.977e-06/0.1018, allocations: 384 / 460.7 MB, free: 4.121 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.056e-05/0.1018, allocations: 7.938 kB / 460.7 MB, free: 4.113 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001354/0.102, allocations: 93.61 kB / 460.8 MB, free: 4.016 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.121e-06/0.102, allocations: 0 / 460.8 MB, free: 4.016 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.963e-06/0.102, allocations: 0 / 460.8 MB, free: 4.016 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.102, allocations: 0 / 460.8 MB, free: 4.016 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.053e-05/0.1021, allocations: 59.97 kB / 460.9 MB, free: 3.957 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001366/0.1022, allocations: 177.6 kB / 461 MB, free: 3.734 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.165e-05/0.1023, allocations: 98.5 kB / 461.1 MB, free: 3.629 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.615e-05/0.1024, allocations: 88.86 kB / 461.2 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.929e-06/0.1024, allocations: 15.86 kB / 461.2 MB, free: 3.523 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.509e-05/0.1024, allocations: 30.56 kB / 461.3 MB, free: 3.484 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 9.01e-07/0.1025, allocations: 3.938 kB / 461.3 MB, free: 3.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0003567/0.1028, allocations: 302.2 kB / 461.6 MB, free: 3.176 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.368e-05/0.1029, allocations: 97.09 kB / 461.7 MB, free: 3.062 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.425e-05/0.103, allocations: 132.3 kB / 461.8 MB, free: 2.926 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.773e-05/0.103, allocations: 29.7 kB / 461.8 MB, free: 2.891 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.247e-05/0.1031, allocations: 96.59 kB / 461.9 MB, free: 2.793 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.487e-05/0.1031, allocations: 82.8 kB / 462 MB, free: 2.711 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.713e-05/0.1032, allocations: 25.7 kB / 462 MB, free: 2.68 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.1033, allocations: 322.8 kB / 462.3 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.6e-05/0.1033, allocations: 55.98 kB / 462.4 MB, free: 2.301 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.123e-05/0.1034, allocations: 63.91 kB / 462.5 MB, free: 2.238 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001797/0.1036, allocations: 242.5 kB / 462.7 MB, free: 1.988 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.1036, allocations: 3.938 kB / 462.7 MB, free: 1.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0001986/0.1038, allocations: 219.2 kB / 462.9 MB, free: 1.758 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.48e-05/0.1039, allocations: 65.72 kB / 463 MB, free: 1.688 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.207e-06/0.1039, allocations: 4 kB / 463 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.1039, allocations: 0 / 463 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-07/0.1039, allocations: 0 / 463 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.1039, allocations: 3.984 kB / 463 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.364e-05/0.1039, allocations: 11.84 kB / 463 MB, free: 1.668 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.82e-05/0.104, allocations: 4 kB / 463 MB, free: 1.664 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001305/0.1041, allocations: 195.4 kB / 463.2 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.33e-05/0.1041, allocations: 23.75 kB / 463.2 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.402e-05/0.1041, allocations: 13.19 kB / 463.2 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.1041, allocations: 0 / 463.2 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.1042, allocations: 0 / 463.2 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-06/0.1042, allocations: 0 / 463.2 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001248/0.1043, allocations: 205.4 kB / 463.4 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.1043, allocations: 0 / 463.4 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.603e-06/0.1043, allocations: 4 kB / 463.4 MB, free: 1.168 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.1043, allocations: 0 / 463.4 MB, free: 1.168 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.1043, allocations: 4 kB / 463.4 MB, free: 1.164 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.1043, allocations: 0 / 463.4 MB, free: 1.164 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1043, allocations: 0 / 463.4 MB, free: 1.164 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004778/0.1048, allocations: 0.5123 MB / 463.9 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.304e-05/0.1049, allocations: 88.95 kB / 464 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.184e-05/0.1049, allocations: 7.938 kB / 464 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.487e-05/0.1049, allocations: 4 kB / 464 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.924e-05/0.1049, allocations: 8 kB / 464 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.04e-05/0.105, allocations: 7.984 kB / 464.1 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.112e-05/0.105, allocations: 103.2 kB / 464.2 MB, free: 404 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.105, allocations: 7.969 kB / 464.2 MB, free: 396 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002237/0.1053, allocations: 40 kB / 464.2 MB, free: 356 kB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000781/0.106, allocations: 1.066 MB / 465.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000599/0.1067, allocations: 0.7023 MB / 466 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1067, allocations: 96 / 466 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004011/0.1071, allocations: 0.5734 MB / 466.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002129/0.1073, allocations: 19.98 kB / 466.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002228/0.1095, allocations: 2.436 MB / 469 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002651/0.1098, allocations: 0.72 MB / 469.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.05e-05/0.1098, allocations: 3.984 kB / 469.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.516e-05/0.1099, allocations: 23.44 kB / 469.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1099, allocations: 0 / 469.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01903/0.1289, allocations: 3.558 MB / 473.3 MB, free: 7.184 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.257/7.386, allocations: 3.078 kB / 473.3 MB, free: 7.184 MB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches