Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.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.Generation.PVsource,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PVsource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PVsource,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PVsource",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.001225/0.001225, allocations: 93.27 kB / 16.65 MB, free: 6.594 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.001496/0.001496, allocations: 183.2 kB / 17.56 MB, free: 6.203 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.319/1.319, allocations: 223.3 MB / 241.6 MB, free: 192 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.17/0.17, allocations: 38.09 MB / 330.8 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002966/0.0002966, allocations: 8.781 kB / 400.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09187/0.09218, allocations: 59.17 MB / 460 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PVsource): time 0.004793/0.09701, allocations: 4.845 MB / 464.8 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002089/0.09913, allocations: 1.48 MB / 466.3 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002191/0.09937, allocations: 27.81 kB / 466.3 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000307/0.09969, allocations: 87.44 kB / 466.4 MB, free: 0.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004821/0.1002, allocations: 227 kB / 466.6 MB, free: 284 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003811/0.1006, allocations: 147.8 kB / 466.8 MB, free: 136 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007422/0.1013, allocations: 0.8376 MB / 467.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008206/0.1022, allocations: 0.54 MB / 468.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002794/0.1024, allocations: 203 kB / 468.4 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004079/0.1029, allocations: 287 kB / 468.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.42e-05/0.1029, allocations: 19.94 kB / 468.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002163/0.1031, allocations: 123.8 kB / 468.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001459/0.1033, allocations: 163.5 kB / 468.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001889/0.1035, allocations: 228.6 kB / 469.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00042/0.1039, allocations: 0.4943 MB / 469.7 MB, free: 13.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.1039, allocations: 7.938 kB / 469.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1039, allocations: 0 / 469.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.1039, allocations: 0 / 469.7 MB, free: 13.21 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.0009127/0.1049, allocations: 0.625 MB / 470.3 MB, free: 12.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.1049, allocations: 12.03 kB / 470.3 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.382e-05/0.105, allocations: 78.72 kB / 470.4 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005357/0.1055, allocations: 80.41 kB / 470.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005424/0.1061, allocations: 391.2 kB / 470.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.131e-05/0.1061, allocations: 21.38 kB / 470.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001155/0.1063, allocations: 51.91 kB / 470.9 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006198/0.1069, allocations: 476.8 kB / 471.4 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.1069, allocations: 0 / 471.4 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.46e-05/0.1069, allocations: 19.98 kB / 471.4 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.243e-05/0.107, allocations: 21 kB / 471.4 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005003/0.1076, allocations: 339.7 kB / 471.8 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001913/0.1095, allocations: 1.714 MB / 473.5 MB, free: 9.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002573/0.1097, allocations: 149.1 kB / 473.6 MB, free: 8.996 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00014/0.1099, allocations: 109.7 kB / 473.7 MB, free: 8.883 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.948e-05/0.1099, allocations: 7.984 kB / 473.7 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.351e-05/0.11, allocations: 34.56 kB / 473.8 MB, free: 8.832 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.332e-06/0.11, allocations: 0 / 473.8 MB, free: 8.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.001326/0.1113, allocations: 0.8602 MB / 474.6 MB, free: 7.898 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.056e-05/0.1114, allocations: 81.11 kB / 474.7 MB, free: 7.801 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002694/0.1116, allocations: 304.5 kB / 475 MB, free: 7.492 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.103e-05/0.1117, allocations: 29.7 kB / 475 MB, free: 7.457 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001421/0.1118, allocations: 243.4 kB / 475.3 MB, free: 7.215 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.179e-05/0.1119, allocations: 67.09 kB / 475.3 MB, free: 7.148 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.521e-05/0.1119, allocations: 33.7 kB / 475.4 MB, free: 7.109 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.112, allocations: 342.8 kB / 475.7 MB, free: 6.766 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001358/0.1122, allocations: 100.2 kB / 475.8 MB, free: 6.664 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001839/0.1124, allocations: 197.2 kB / 476 MB, free: 6.426 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003425/0.1127, allocations: 314.8 kB / 476.3 MB, free: 6.074 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.1127, allocations: 8 kB / 476.3 MB, free: 6.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007591/0.1135, allocations: 448.7 kB / 476.7 MB, free: 5.621 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.1135, allocations: 12.09 kB / 476.8 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005299/0.1141, allocations: 288.5 kB / 477 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004239/0.1145, allocations: 128.7 kB / 477.2 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001794/0.1147, allocations: 67.78 kB / 477.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002283/0.117, allocations: 2.119 MB / 479.3 MB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001769/0.1172, allocations: 15.98 kB / 479.4 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.193e-05/0.1172, allocations: 16.22 kB / 479.4 MB, free: 2.844 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 (29): * Single equations (assignments): 28 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001971/0.1174, allocations: 193.7 kB / 479.6 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.007e-05/0.1174, allocations: 31.61 kB / 479.6 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003998/0.1179, allocations: 249.4 kB / 479.8 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.421e-06/0.1179, allocations: 4 kB / 479.8 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-06/0.1179, allocations: 0 / 479.8 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.1179, allocations: 3.938 kB / 479.8 MB, free: 2.348 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009995/0.1189, allocations: 0.7234 MB / 480.6 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1189, allocations: 0 / 480.6 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001935/0.1191, allocations: 39.91 kB / 480.6 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.44e-05/0.1192, allocations: 32.78 kB / 480.6 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.922e-05/0.1192, allocations: 16.05 kB / 480.7 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001058/0.1203, allocations: 1.478 MB / 482.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.1203, allocations: 4.031 kB / 482.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004843/0.1208, allocations: 428.7 kB / 482.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.931e-05/0.1209, allocations: 100.7 kB / 482.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.802e-05/0.1209, allocations: 12.03 kB / 482.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001405/0.1211, allocations: 8 kB / 482.7 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.139e-05/0.1211, allocations: 11.92 kB / 482.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.123e-05/0.1212, allocations: 7.984 kB / 482.7 MB, free: 15.26 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002078/0.1214, allocations: 219.1 kB / 482.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1214, allocations: 0 / 482.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004489/0.1218, allocations: 84 kB / 483 MB, free: 14.96 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * 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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007805/0.1226, allocations: 0.976 MB / 484 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006586/0.1233, allocations: 382.4 kB / 484.3 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.1233, allocations: 4.875 kB / 484.3 MB, free: 13.56 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003078/0.1236, allocations: 227.4 kB / 484.6 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004879/0.1241, allocations: 61.05 kB / 484.6 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004226/0.1284, allocations: 3.72 MB / 488.3 MB, free: 9.352 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004341/0.1288, allocations: 0.8458 MB / 489.2 MB, free: 8.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001949/0.129, allocations: 62.92 kB / 489.3 MB, free: 8.414 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001606/0.1292, allocations: 123.4 kB / 489.4 MB, free: 8.293 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1292, allocations: 0 / 489.4 MB, free: 8.293 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01869/0.1479, allocations: 6.9 MB / 496.3 MB, free: 1.59 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002261/0.1482, allocations: 239.8 kB / 496.5 MB, free: 1.328 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.843/1.991, allocations: 0 / 496.5 MB, free: 1.328 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PVsource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PVsource.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.PVsource.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PVsource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches