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: translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi|generator1.p.1.|generator1.p.2.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi|generator1.p.1.|generator1.p.2.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007003/0.0007004, allocations: 93.02 kB / 16.65 MB, free: 6.598 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.0008059/0.000806, allocations: 180.4 kB / 17.56 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.195/1.195, allocations: 223.3 MB / 241.6 MB, free: 100 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1709/0.1709, allocations: 38.1 MB / 330.8 MB, free: 8.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002783/0.0002783, allocations: 9.531 kB / 400.7 MB, free: 34.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08593/0.08622, allocations: 59.17 MB / 459.9 MB, free: 7.055 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.004666/0.09092, allocations: 4.954 MB / 464.8 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003103/0.09405, allocations: 2.579 MB / 467.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003268/0.0944, allocations: 19.88 kB / 467.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002168/0.09463, allocations: 67.53 kB / 467.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001034/0.09567, allocations: 486.3 kB / 468 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005858/0.09627, allocations: 259.4 kB / 468.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001246/0.09753, allocations: 1.126 MB / 469.4 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009757/0.09851, allocations: 0.575 MB / 469.9 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000442/0.09897, allocations: 250.8 kB / 470.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005064/0.09948, allocations: 322.8 kB / 470.5 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.589e-05/0.09956, allocations: 24 kB / 470.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001177/0.1007, allocations: 0.7677 MB / 471.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002223/0.101, allocations: 179.5 kB / 471.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002947/0.1013, allocations: 248.5 kB / 471.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001151/0.1024, allocations: 0.7787 MB / 472.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1025, allocations: 4 kB / 472.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1025, allocations: 0 / 472.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.024e-05/0.1025, allocations: 0 / 472.5 MB, free: 10.38 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.001018/0.1035, allocations: 0.6865 MB / 473.2 MB, free: 9.645 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.1036, allocations: 8.031 kB / 473.2 MB, free: 9.637 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001523/0.1051, allocations: 208 kB / 473.4 MB, free: 9.434 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004615/0.1056, allocations: 358.4 kB / 473.7 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.931e-05/0.1056, allocations: 29.38 kB / 473.8 MB, free: 9.008 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.682e-05/0.1057, allocations: 40.38 kB / 473.8 MB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009289/0.1066, allocations: 0.6266 MB / 474.4 MB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.409e-05/0.1066, allocations: 11.84 kB / 474.4 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.321e-05/0.1067, allocations: 16 kB / 474.5 MB, free: 8.289 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-05/0.1067, allocations: 36.97 kB / 474.5 MB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008376/0.1076, allocations: 0.6089 MB / 475.1 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002775/0.1104, allocations: 2.269 MB / 477.4 MB, free: 5.258 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005738/0.111, allocations: 486.5 kB / 477.8 MB, free: 4.746 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002916/0.1113, allocations: 236.7 kB / 478.1 MB, free: 4.512 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.991e-05/0.1113, allocations: 7.984 kB / 478.1 MB, free: 4.504 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.972e-05/0.1113, allocations: 42.5 kB / 478.1 MB, free: 4.453 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 1.764e-06/0.1114, allocations: 4 kB / 478.1 MB, free: 4.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.003065/0.1144, allocations: 1.709 MB / 479.8 MB, free: 2.664 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.793e-05/0.1145, allocations: 85.23 kB / 479.9 MB, free: 2.562 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000299/0.1148, allocations: 278.9 kB / 480.2 MB, free: 2.277 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.879e-05/0.1148, allocations: 33.7 kB / 480.2 MB, free: 2.238 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000123/0.115, allocations: 228 kB / 480.4 MB, free: 2.008 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001482/0.1151, allocations: 149.8 kB / 480.6 MB, free: 1.859 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.856e-05/0.1152, allocations: 45.69 kB / 480.6 MB, free: 1.809 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.1153, allocations: 350.8 kB / 481 MB, free: 1.457 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002397/0.1155, allocations: 177 kB / 481.2 MB, free: 1.285 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003044/0.1159, allocations: 294.3 kB / 481.4 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000596/0.1165, allocations: 0.5005 MB / 481.9 MB, free: 416 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.1165, allocations: 4 kB / 481.9 MB, free: 412 kB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001153/0.1176, allocations: 0.677 MB / 482.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.1177, allocations: 4 kB / 482.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.1177, allocations: 11.88 kB / 482.6 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005181/0.1182, allocations: 181 kB / 482.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003209/0.1185, allocations: 91.89 kB / 482.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003114/0.1216, allocations: 2.532 MB / 485.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000212/0.1219, allocations: 19.98 kB / 485.5 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.377e-05/0.1219, allocations: 20 kB / 485.5 MB, free: 12.73 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.0002089/0.1221, allocations: 199.9 kB / 485.7 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.957e-05/0.1222, allocations: 39.53 kB / 485.7 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001071/0.1233, allocations: 0.6336 MB / 486.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.1233, allocations: 7.938 kB / 486.4 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.844e-06/0.1233, allocations: 0 / 486.4 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.1233, allocations: 4 kB / 486.4 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00189/0.1252, allocations: 1.359 MB / 487.7 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.1252, allocations: 4 kB / 487.7 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003206/0.1255, allocations: 79.89 kB / 487.8 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004038/0.126, allocations: 136.7 kB / 487.9 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.664e-05/0.126, allocations: 15.98 kB / 487.9 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002413/0.1284, allocations: 2.323 MB / 490.3 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.1284, allocations: 4.156 kB / 490.3 MB, free: 7.699 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001269/0.1297, allocations: 0.9569 MB / 491.2 MB, free: 6.711 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.37e-05/0.1298, allocations: 116.7 kB / 491.3 MB, free: 6.578 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.438e-05/0.1298, allocations: 12 kB / 491.4 MB, free: 6.566 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000189/0.13, allocations: 11.98 kB / 491.4 MB, free: 6.555 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.824e-05/0.1301, allocations: 31.95 kB / 491.4 MB, free: 6.523 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.753e-05/0.1301, allocations: 16 kB / 491.4 MB, free: 6.508 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001667/0.1303, allocations: 201.9 kB / 491.6 MB, free: 6.312 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1303, allocations: 0 / 491.6 MB, free: 6.312 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005342/0.1309, allocations: 140 kB / 491.7 MB, free: 6.176 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.0001119/0.131, allocations: 115.1 kB / 491.9 MB, free: 6.051 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001037/0.132, allocations: 0.6694 MB / 492.5 MB, free: 5.371 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.132, allocations: 0 / 492.5 MB, free: 5.371 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006098/0.1326, allocations: 418.3 kB / 492.9 MB, free: 4.949 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004712/0.1331, allocations: 58.94 kB / 493 MB, free: 4.895 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001686/0.1348, allocations: 1.404 MB / 494.4 MB, free: 3.449 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004188/0.1353, allocations: 0.8671 MB / 495.3 MB, free: 2.555 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000178/0.1354, allocations: 79.22 kB / 495.3 MB, free: 2.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.063e-05/0.1355, allocations: 35.42 kB / 495.4 MB, free: 2.445 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1355, allocations: 0 / 495.4 MB, free: 2.445 MB / 366.1 MB Notification: Performance of Templates: time 0.008563/0.1441, allocations: 5.255 MB / 0.4889 GB, free: 13.2 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.makefile Environment - environmentSimulation: (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 & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches