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.0009437/0.0009438, allocations: 92.27 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.001196/0.001196, allocations: 185 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.216/1.216, allocations: 223.2 MB / 241.6 MB, free: 204 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1561/0.1561, allocations: 38.09 MB / 330.8 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002618/0.0002619, allocations: 11.98 kB / 400.8 MB, free: 34.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07705/0.07733, allocations: 59.16 MB / 460 MB, free: 6.992 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.004304/0.08165, allocations: 4.954 MB / 464.9 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002741/0.08441, allocations: 2.575 MB / 467.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001499/0.08457, allocations: 19.88 kB / 467.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001511/0.08473, allocations: 71.47 kB / 467.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007372/0.08548, allocations: 482.3 kB / 468.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004119/0.0859, allocations: 255.4 kB / 468.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008253/0.08674, allocations: 1.126 MB / 469.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008435/0.08759, allocations: 0.5827 MB / 470 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002721/0.08787, allocations: 254.8 kB / 470.3 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003217/0.08821, allocations: 326.8 kB / 470.6 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.458e-05/0.08825, allocations: 20 kB / 470.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008341/0.08909, allocations: 0.7638 MB / 471.4 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001414/0.08924, allocations: 175.5 kB / 471.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001823/0.08943, allocations: 256.4 kB / 471.8 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006688/0.0901, allocations: 0.771 MB / 472.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.09011, allocations: 0 / 472.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.51e-07/0.09012, allocations: 4 kB / 472.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.09013, allocations: 4 kB / 472.6 MB, free: 10.32 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.0007732/0.09091, allocations: 0.6826 MB / 473.3 MB, free: 9.586 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.826e-05/0.09095, allocations: 12.03 kB / 473.3 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.092e-05/0.09103, allocations: 90.69 kB / 473.4 MB, free: 9.477 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001443/0.09248, allocations: 204 kB / 473.6 MB, free: 9.277 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003598/0.09285, allocations: 358.4 kB / 473.9 MB, free: 8.883 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.485e-05/0.09289, allocations: 29.38 kB / 473.9 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.084e-05/0.09296, allocations: 44.36 kB / 474 MB, free: 8.809 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000806/0.09377, allocations: 0.6264 MB / 474.6 MB, free: 8.156 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.0938, allocations: 3.906 kB / 474.6 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.241e-05/0.09385, allocations: 20 kB / 474.6 MB, free: 8.133 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.31e-05/0.0939, allocations: 40.97 kB / 474.7 MB, free: 8.094 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008147/0.09472, allocations: 0.6089 MB / 475.3 MB, free: 7.484 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002645/0.09737, allocations: 2.269 MB / 477.5 MB, free: 5.098 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005503/0.09794, allocations: 476.7 kB / 478 MB, free: 4.598 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002884/0.09823, allocations: 241.6 kB / 478.2 MB, free: 4.355 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.666e-05/0.09827, allocations: 12 kB / 478.3 MB, free: 4.344 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.328e-05/0.0983, allocations: 34.56 kB / 478.3 MB, free: 4.301 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 1.423e-06/0.09831, allocations: 0 / 478.3 MB, free: 4.301 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.002962/0.1013, allocations: 1.715 MB / 480 MB, free: 2.508 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.63e-05/0.1013, allocations: 81.11 kB / 480.1 MB, free: 2.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002309/0.1016, allocations: 278.9 kB / 480.4 MB, free: 2.125 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.811e-05/0.1016, allocations: 29.7 kB / 480.4 MB, free: 2.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.1017, allocations: 236 kB / 480.6 MB, free: 1.852 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/0.1018, allocations: 145.8 kB / 480.8 MB, free: 1.707 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.719e-05/0.1019, allocations: 49.69 kB / 480.8 MB, free: 1.652 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.896e-05/0.102, allocations: 350.8 kB / 481.2 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002448/0.1022, allocations: 177 kB / 481.3 MB, free: 1.129 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003012/0.1025, allocations: 294.3 kB / 481.6 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005813/0.1031, allocations: 0.5005 MB / 482.1 MB, free: 256 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1031, allocations: 4 kB / 482.1 MB, free: 252 kB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.00106/0.1042, allocations: 0.689 MB / 482.8 MB, free: 15.54 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.1042, allocations: 8 kB / 482.8 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.1043, allocations: 4 kB / 482.8 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005011/0.1048, allocations: 172.5 kB / 483 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003189/0.1051, allocations: 99.83 kB / 483.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002792/0.1079, allocations: 2.525 MB / 485.6 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002112/0.1081, allocations: 19.98 kB / 485.6 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.182e-05/0.1082, allocations: 24 kB / 485.7 MB, free: 12.57 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.0001791/0.1083, allocations: 198.5 kB / 485.8 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.826e-05/0.1084, allocations: 39.53 kB / 485.9 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001058/0.1095, allocations: 0.6336 MB / 486.5 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.1095, allocations: 8.109 kB / 486.5 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-06/0.1095, allocations: 3.938 kB / 486.5 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.1095, allocations: 4.078 kB / 486.5 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001837/0.1113, allocations: 1.355 MB / 487.9 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.1114, allocations: 0 / 487.9 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003256/0.1117, allocations: 79.89 kB / 488 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004051/0.1121, allocations: 148.7 kB / 488.1 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.632e-05/0.1121, allocations: 15.98 kB / 488.1 MB, free: 9.992 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002341/0.1145, allocations: 2.311 MB / 490.4 MB, free: 7.551 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1145, allocations: 4 kB / 490.4 MB, free: 7.547 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001241/0.1158, allocations: 0.953 MB / 491.4 MB, free: 6.562 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.166e-05/0.1158, allocations: 116.7 kB / 491.5 MB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.264e-05/0.1159, allocations: 8 kB / 491.5 MB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001956/0.1161, allocations: 15.98 kB / 491.5 MB, free: 6.406 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.132e-05/0.1162, allocations: 35.89 kB / 491.6 MB, free: 6.371 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.56e-05/0.1162, allocations: 15.94 kB / 491.6 MB, free: 6.355 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001573/0.1163, allocations: 205.9 kB / 491.8 MB, free: 6.156 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1164, allocations: 0 / 491.8 MB, free: 6.156 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004916/0.1169, allocations: 132 kB / 491.9 MB, free: 6.027 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.001445/0.1183, allocations: 1.501 MB / 493.4 MB, free: 4.488 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009919/0.1193, allocations: 0.6656 MB / 494.1 MB, free: 3.805 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1193, allocations: 0 / 494.1 MB, free: 3.805 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005959/0.1199, allocations: 430.7 kB / 494.5 MB, free: 3.371 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004516/0.1204, allocations: 64.56 kB / 494.6 MB, free: 3.309 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005003/0.1254, allocations: 4.736 MB / 499.3 MB, free: 14.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003524/0.1258, allocations: 0.871 MB / 0.4885 GB, free: 13.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001792/0.126, allocations: 75.2 kB / 0.4885 GB, free: 13.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001757/0.1261, allocations: 151.3 kB / 0.4887 GB, free: 13.26 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1261, allocations: 0 / 0.4887 GB, free: 13.26 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4419/0.568, allocations: 9.045 MB / 0.4975 GB, free: 4.395 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002596/0.5683, allocations: 238.2 kB / 0.4977 GB, free: 4.137 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.845/2.413, allocations: 3.938 kB / 0.4977 GB, free: 4.133 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","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches