Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.GeneratorTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2",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.0012/0.0012, allocations: 106 kB / 16.92 MB, free: 6.148 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.001076/0.001076, allocations: 191.5 kB / 17.85 MB, free: 5.309 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.313/1.313, 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.1719/0.1719, allocations: 38.04 MB / 329.7 MB, free: 8.836 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 60.67 kB / 398.9 MB, free: 33.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09302/0.0942, allocations: 58.06 MB / 457 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.005916/0.1002, allocations: 4.914 MB / 461.9 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003221/0.1034, allocations: 2.477 MB / 464.4 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002565/0.1037, allocations: 15.88 kB / 464.4 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001136/0.1048, allocations: 450.1 kB / 464.8 MB, free: 72 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000986/0.1058, allocations: 0.5058 MB / 465.3 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005997/0.1064, allocations: 279.2 kB / 465.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006777/0.1071, allocations: 0.7281 MB / 466.3 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004319/0.1076, allocations: 337.5 kB / 466.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003348/0.1079, allocations: 310.7 kB / 467 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003673/0.1083, allocations: 342.7 kB / 467.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.315e-05/0.1084, allocations: 36 kB / 467.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009202/0.1093, allocations: 0.6274 MB / 468 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001948/0.1095, allocations: 195.5 kB / 468.1 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002428/0.1097, allocations: 246.8 kB / 468.4 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008953/0.1106, allocations: 0.7518 MB / 469.1 MB, free: 11.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.1107, allocations: 0 / 469.1 MB, free: 11.74 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1107, allocations: 0 / 469.1 MB, free: 11.74 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.611e-05/0.1107, allocations: 4 kB / 469.1 MB, free: 11.74 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001056/0.1118, allocations: 0.7752 MB / 469.9 MB, free: 10.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/0.1118, allocations: 12.03 kB / 469.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.559e-05/0.1119, allocations: 82.7 kB / 470 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0016/0.1135, allocations: 200.1 kB / 470.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004496/0.114, allocations: 358.3 kB / 470.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.325e-05/0.114, allocations: 37.36 kB / 470.6 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.374e-05/0.1141, allocations: 44.31 kB / 470.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009065/0.115, allocations: 0.6264 MB / 471.3 MB, free: 9.496 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.658e-05/0.1151, allocations: 7.906 kB / 471.3 MB, free: 9.488 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.689e-05/0.1151, allocations: 19.98 kB / 471.3 MB, free: 9.469 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.627e-05/0.1152, allocations: 32.98 kB / 471.3 MB, free: 9.438 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009153/0.1161, allocations: 0.6128 MB / 471.9 MB, free: 8.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002993/0.1191, allocations: 2.253 MB / 474.2 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005998/0.1197, allocations: 486.6 kB / 474.7 MB, free: 5.934 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003114/0.12, allocations: 240.6 kB / 474.9 MB, free: 5.695 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.509e-05/0.1201, allocations: 7.984 kB / 474.9 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.714e-05/0.1201, allocations: 38.56 kB / 474.9 MB, free: 5.641 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 2.034e-06/0.1201, allocations: 4 kB / 474.9 MB, free: 5.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.003278/0.1234, allocations: 1.705 MB / 476.7 MB, free: 3.855 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.991e-05/0.1235, allocations: 85.09 kB / 476.7 MB, free: 3.754 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002577/0.1237, allocations: 275 kB / 477 MB, free: 3.473 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.843e-05/0.1238, allocations: 33.83 kB / 477 MB, free: 3.434 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001328/0.1239, allocations: 228 kB / 477.3 MB, free: 3.207 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/0.124, allocations: 153.7 kB / 477.4 MB, free: 3.055 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001237/0.1242, allocations: 86.25 kB / 477.5 MB, free: 2.965 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.1244, allocations: 350.7 kB / 477.8 MB, free: 2.613 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002598/0.1246, allocations: 173 kB / 478 MB, free: 2.445 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003291/0.125, allocations: 302.3 kB / 478.3 MB, free: 2.102 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000723/0.1257, allocations: 0.4966 MB / 478.8 MB, free: 1.559 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.1257, allocations: 3.938 kB / 478.8 MB, free: 1.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001149/0.1269, allocations: 0.6848 MB / 479.5 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.1269, allocations: 8 kB / 479.5 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.1269, allocations: 4 kB / 479.5 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000579/0.1275, allocations: 180.9 kB / 479.7 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003687/0.1279, allocations: 99.81 kB / 479.8 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003812/0.1317, allocations: 2.792 MB / 482.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003589/0.1321, allocations: 19.98 kB / 482.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.852e-05/0.1322, allocations: 20 kB / 482.6 MB, free: 13.61 MB / 366.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 (47): * Single equations (assignments): 46 * 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 {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0003061/0.1325, allocations: 199.9 kB / 482.8 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.1326, allocations: 39.56 kB / 482.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001241/0.1338, allocations: 0.6298 MB / 483.5 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.275e-06/0.1339, allocations: 4 kB / 483.5 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.1339, allocations: 3.938 kB / 483.5 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.1339, allocations: 8 kB / 483.5 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002401/0.1363, allocations: 1.355 MB / 484.8 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.1363, allocations: 0 / 484.8 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003541/0.1367, allocations: 79.89 kB / 484.9 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004501/0.1371, allocations: 152.7 kB / 485.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.204e-05/0.1372, allocations: 8 kB / 485.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002993/0.1402, allocations: 2.568 MB / 487.6 MB, free: 8.328 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/0.1402, allocations: 4 kB / 487.6 MB, free: 8.324 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001397/0.1416, allocations: 0.953 MB / 488.6 MB, free: 7.34 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001097/0.1417, allocations: 112.8 kB / 488.7 MB, free: 7.211 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.636e-05/0.1418, allocations: 11.94 kB / 488.7 MB, free: 7.199 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002156/0.142, allocations: 19.92 kB / 488.7 MB, free: 7.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.094e-05/0.1421, allocations: 31.95 kB / 488.8 MB, free: 7.148 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.672e-05/0.1421, allocations: 8 kB / 488.8 MB, free: 7.141 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001938/0.1423, allocations: 201.9 kB / 489 MB, free: 6.945 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1423, allocations: 4 kB / 489 MB, free: 6.941 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006112/0.143, allocations: 136 kB / 489.1 MB, free: 6.809 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * 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 (38): * Single equations (assignments): 36 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001591/0.1446, allocations: 1.509 MB / 490.6 MB, free: 5.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001329/0.1459, allocations: 0.7319 MB / 491.4 MB, free: 4.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.1459, allocations: 0 / 491.4 MB, free: 4.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006498/0.1466, allocations: 426.8 kB / 491.8 MB, free: 4.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004718/0.1471, allocations: 72.73 kB / 491.8 MB, free: 4.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005784/0.1529, allocations: 4.47 MB / 496.3 MB, free: 15.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004346/0.1533, allocations: 0.8746 MB / 497.2 MB, free: 14.46 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002114/0.1535, allocations: 75.22 kB / 497.3 MB, free: 14.39 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000201/0.1537, allocations: 143.4 kB / 497.4 MB, free: 14.25 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1537, allocations: 3.938 kB / 497.4 MB, free: 14.24 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03156/0.1853, allocations: 9.691 MB / 0.4952 GB, free: 4.668 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.54/10.72, allocations: 7.188 kB / 0.4952 GB, free: 4.664 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches