Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.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.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source",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.0007423/0.0007423, allocations: 95.61 kB / 16.65 MB, free: 6.59 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.001124/0.001123, allocations: 183.4 kB / 17.57 MB, free: 6.199 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.245/1.245, allocations: 223.2 MB / 241.6 MB, free: 220 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1637/0.1637, allocations: 38.09 MB / 330.8 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003823/0.0003822, allocations: 8 kB / 400.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09812/0.09852, allocations: 59.17 MB / 460 MB, free: 6.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.004967/0.1035, allocations: 4.666 MB / 464.6 MB, free: 2.281 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003038/0.1066, allocations: 1.695 MB / 466.3 MB, free: 0.582 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004566/0.1071, allocations: 27.81 kB / 466.4 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002865/0.1074, allocations: 55.55 kB / 466.4 MB, free: 0.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008282/0.1082, allocations: 263 kB / 466.7 MB, free: 248 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006889/0.1089, allocations: 215.6 kB / 466.9 MB, free: 32 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000924/0.1099, allocations: 0.955 MB / 467.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007912/0.1107, allocations: 459.6 kB / 468.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004263/0.1111, allocations: 211 kB / 468.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006161/0.1118, allocations: 370.9 kB / 468.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.916e-05/0.1118, allocations: 20 kB / 468.9 MB, free: 14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005446/0.1124, allocations: 235.5 kB / 469.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002142/0.1126, allocations: 219.4 kB / 469.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002585/0.1129, allocations: 252.4 kB / 469.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006525/0.1135, allocations: 0.6423 MB / 470.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.1135, allocations: 0 / 470.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1135, allocations: 0 / 470.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.117e-06/0.1136, allocations: 0 / 470.2 MB, free: 12.66 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001281/0.1148, allocations: 0.692 MB / 470.9 MB, free: 11.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.1149, allocations: 8.031 kB / 470.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.94e-05/0.115, allocations: 86.7 kB / 471 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000604/0.1156, allocations: 84.31 kB / 471.1 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005629/0.1162, allocations: 411.1 kB / 471.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.696e-05/0.1162, allocations: 29.38 kB / 471.5 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001482/0.1164, allocations: 47.92 kB / 471.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009888/0.1174, allocations: 0.6875 MB / 472.2 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.171e-05/0.1174, allocations: 15.84 kB / 472.3 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.916e-05/0.1175, allocations: 19.98 kB / 472.3 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002251/0.1177, allocations: 68.92 kB / 472.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009791/0.1187, allocations: 0.6674 MB / 473 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003377/0.1221, allocations: 2.654 MB / 475.7 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005444/0.1226, allocations: 317.3 kB / 476 MB, free: 6.586 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002645/0.1229, allocations: 205.7 kB / 476.2 MB, free: 6.379 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.494e-05/0.123, allocations: 7.984 kB / 476.2 MB, free: 6.371 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.664e-05/0.123, allocations: 38.5 kB / 476.2 MB, free: 6.324 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 2.515e-06/0.123, allocations: 0 / 476.2 MB, free: 6.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.001914/0.1249, allocations: 1.292 MB / 477.5 MB, free: 4.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.125, allocations: 81.11 kB / 477.6 MB, free: 4.883 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003001/0.1253, allocations: 291.2 kB / 477.9 MB, free: 4.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.736e-05/0.1253, allocations: 33.64 kB / 477.9 MB, free: 4.551 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001541/0.1255, allocations: 255.6 kB / 478.2 MB, free: 4.293 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.508e-05/0.1256, allocations: 141.9 kB / 478.3 MB, free: 4.152 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.027e-05/0.1257, allocations: 45.69 kB / 478.3 MB, free: 4.102 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.1258, allocations: 350.7 kB / 478.7 MB, free: 3.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002607/0.1261, allocations: 192.9 kB / 478.9 MB, free: 3.562 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003461/0.1264, allocations: 321.3 kB / 479.2 MB, free: 3.195 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006604/0.1271, allocations: 0.5584 MB / 479.7 MB, free: 2.578 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.1271, allocations: 4 kB / 479.8 MB, free: 2.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001178/0.1283, allocations: 0.6777 MB / 480.4 MB, free: 1.883 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.1283, allocations: 4 kB / 480.4 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008031/0.1291, allocations: 496.1 kB / 480.9 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004052/0.1296, allocations: 109.6 kB / 481 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003021/0.1299, allocations: 87.88 kB / 481.1 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002505/0.1324, allocations: 3.026 MB / 484.1 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002378/0.1326, allocations: 23.98 kB / 484.2 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.628e-05/0.1327, allocations: 20 kB / 484.2 MB, free: 13.85 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (45): * Single equations (assignments): 41 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002494/0.1329, allocations: 213.6 kB / 484.4 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.164e-05/0.133, allocations: 31.62 kB / 484.4 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006996/0.1337, allocations: 468.7 kB / 484.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-05/0.1338, allocations: 16.11 kB / 484.9 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.512e-06/0.1338, allocations: 4 kB / 484.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.1338, allocations: 3.984 kB / 484.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001344/0.1351, allocations: 1.025 MB / 485.9 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.1352, allocations: 0 / 485.9 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003264/0.1355, allocations: 63.95 kB / 486 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/0.1355, allocations: 0 / 486 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.436e-05/0.1355, allocations: 8 kB / 486 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.353e-06/0.1356, allocations: 4 kB / 486 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1356, allocations: 3.938 kB / 486 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000889/0.1365, allocations: 0.7512 MB / 486.8 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001398/0.1366, allocations: 140.7 kB / 486.9 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.366e-05/0.1367, allocations: 8 kB / 486.9 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001894/0.1368, allocations: 15.98 kB / 486.9 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.648e-05/0.1369, allocations: 19.91 kB / 486.9 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.512e-05/0.1369, allocations: 15.94 kB / 486.9 MB, free: 10.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001922/0.1371, allocations: 203.1 kB / 487.1 MB, free: 10.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1371, allocations: 4 kB / 487.2 MB, free: 10.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005076/0.1377, allocations: 112 kB / 487.3 MB, free: 10.64 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.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 (30): * Single equations (assignments): 27 * Array equations: 2 * 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.001247/0.1389, allocations: 1.327 MB / 488.6 MB, free: 9.273 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001036/0.14, allocations: 0.7171 MB / 489.3 MB, free: 8.531 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.14, allocations: 4.125 kB / 489.3 MB, free: 8.527 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002637/0.1402, allocations: 207.8 kB / 489.5 MB, free: 8.324 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005354/0.1408, allocations: 68.48 kB / 489.6 MB, free: 8.258 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005479/0.1463, allocations: 4.63 MB / 494.2 MB, free: 3.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004693/0.1468, allocations: 0.8782 MB / 495.1 MB, free: 2.508 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002847/0.1471, allocations: 99.19 kB / 495.2 MB, free: 2.406 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001889/0.1473, allocations: 143.4 kB / 495.3 MB, free: 2.266 MB / 366.1 MB Notification: Performance of SimCode: time 5e-07/0.1473, allocations: 0 / 495.3 MB, free: 2.266 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01869/0.166, allocations: 7.589 MB / 0.4911 GB, free: 10.85 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001773/0.1662, allocations: 229.5 kB / 0.4913 GB, free: 10.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.869/2.035, allocations: 0 / 0.4913 GB, free: 10.59 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Source.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches