Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.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.FixedCurrentTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest",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.001093/0.001093, allocations: 106.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.001026/0.001027, 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.278/1.278, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1691/0.1691, allocations: 38.04 MB / 329.7 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 68.39 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09795/0.09911, allocations: 58.07 MB / 457 MB, free: 7.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.00474/0.1039, allocations: 3.464 MB / 460.4 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001964/0.1059, allocations: 1.492 MB / 461.9 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001254/0.106, allocations: 11.94 kB / 461.9 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007243/0.1068, allocations: 254.9 kB / 462.2 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005151/0.1073, allocations: 274.9 kB / 462.5 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000261/0.1076, allocations: 131.6 kB / 462.6 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003268/0.1079, allocations: 347 kB / 462.9 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002515/0.1082, allocations: 129.9 kB / 463.1 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001995/0.1084, allocations: 155.4 kB / 463.2 MB, free: 1.715 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001935/0.1086, allocations: 143.5 kB / 463.3 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.604e-05/0.1086, allocations: 16 kB / 463.4 MB, free: 1.559 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004689/0.1091, allocations: 335.2 kB / 463.7 MB, free: 1.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001134/0.1092, allocations: 103.7 kB / 463.8 MB, free: 1.129 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001131/0.1093, allocations: 103.4 kB / 463.9 MB, free: 1.027 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003929/0.1097, allocations: 355 kB / 464.2 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.1097, allocations: 3.938 kB / 464.2 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1097, allocations: 0 / 464.2 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.1098, allocations: 0 / 464.2 MB, free: 0.6758 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.0005926/0.1104, allocations: 0.522 MB / 464.8 MB, free: 108 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.128e-05/0.1104, allocations: 11.89 kB / 464.8 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.06e-05/0.1104, allocations: 50.73 kB / 464.8 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008396/0.1113, allocations: 88.64 kB / 464.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002706/0.1116, allocations: 267.8 kB / 465.2 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.1116, allocations: 16.31 kB / 465.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.737e-05/0.1116, allocations: 16.38 kB / 465.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004177/0.1121, allocations: 325.8 kB / 465.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.1121, allocations: 0 / 465.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.087e-05/0.1121, allocations: 8 kB / 465.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.615e-05/0.1122, allocations: 19.98 kB / 465.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003851/0.1125, allocations: 295.7 kB / 465.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001485/0.114, allocations: 1.268 MB / 467.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003982/0.1144, allocations: 237 kB / 467.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001231/0.1146, allocations: 93.73 kB / 467.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.162e-05/0.1146, allocations: 8 kB / 467.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.431e-05/0.1146, allocations: 34.56 kB / 467.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.282e-06/0.1146, allocations: 0 / 467.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006985/0.1154, allocations: 448.3 kB / 467.9 MB, free: 12.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.531e-05/0.1154, allocations: 81.11 kB / 468 MB, free: 12.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001613/0.1156, allocations: 194.3 kB / 468.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.714e-05/0.1156, allocations: 29.7 kB / 468.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.841e-05/0.1157, allocations: 164 kB / 468.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.816e-05/0.1157, allocations: 63.12 kB / 468.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.801e-05/0.1158, allocations: 49.64 kB / 468.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.828e-05/0.1159, allocations: 330.8 kB / 468.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.116, allocations: 83.95 kB / 468.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001517/0.1162, allocations: 154.2 kB / 469 MB, free: 11.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002929/0.1165, allocations: 274.5 kB / 469.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.1165, allocations: 0 / 469.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000367/0.1169, allocations: 289.4 kB / 469.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.1169, allocations: 10.5 kB / 469.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.1169, allocations: 11.92 kB / 469.6 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.1169, allocations: 4 kB / 469.6 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000232/0.1172, allocations: 55.91 kB / 469.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.1172, allocations: 4 kB / 469.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001288/0.1173, allocations: 11.98 kB / 469.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.959e-05/0.1173, allocations: 8 kB / 469.7 MB, free: 10.86 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * 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.0001231/0.1175, allocations: 157.8 kB / 469.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.206e-05/0.1175, allocations: 19.72 kB / 469.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003186/0.1178, allocations: 231.4 kB / 470.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.1179, allocations: 0 / 470.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.1179, allocations: 4 kB / 470.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.778e-06/0.1179, allocations: 3.984 kB / 470.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001129/0.119, allocations: 0.9595 MB / 471.1 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.187e-06/0.119, allocations: 4 kB / 471.1 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001296/0.1192, allocations: 35.92 kB / 471.1 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.1192, allocations: 4 kB / 471.1 MB, free: 9.332 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.751e-05/0.1192, allocations: 11.94 kB / 471.1 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.513e-06/0.1192, allocations: 11.92 kB / 471.1 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.1192, allocations: 4 kB / 471.1 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003472/0.1196, allocations: 413 kB / 471.5 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.669e-05/0.1196, allocations: 96.91 kB / 471.6 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.495e-05/0.1197, allocations: 15.94 kB / 471.6 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001461/0.1198, allocations: 11.98 kB / 471.6 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.297e-05/0.1199, allocations: 27.86 kB / 471.7 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.699e-05/0.1199, allocations: 12 kB / 471.7 MB, free: 8.656 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001102/0.12, allocations: 147 kB / 471.8 MB, free: 8.512 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.12, allocations: 3.938 kB / 471.8 MB, free: 8.508 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003239/0.1203, allocations: 59.94 kB / 471.9 MB, free: 8.449 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0005559/0.1209, allocations: 0.9427 MB / 472.8 MB, free: 7.434 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003109/0.1212, allocations: 223.6 kB / 473.1 MB, free: 7.215 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.1212, allocations: 4.562 kB / 473.1 MB, free: 7.211 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001268/0.1214, allocations: 103.8 kB / 473.2 MB, free: 7.109 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004053/0.1218, allocations: 43.8 kB / 473.2 MB, free: 7.066 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002456/0.1242, allocations: 2.679 MB / 475.9 MB, free: 4.156 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002915/0.1245, allocations: 0.7632 MB / 476.6 MB, free: 3.367 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001297/0.1247, allocations: 49.5 kB / 476.7 MB, free: 3.316 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.84e-05/0.1248, allocations: 67.42 kB / 476.8 MB, free: 3.25 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1248, allocations: 0 / 476.8 MB, free: 3.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03112/0.1559, allocations: 4.039 MB / 480.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.2/7.356, allocations: 11.45 kB / 480.8 MB, free: 15.28 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.FixedCurrentTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches