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.001288/0.001288, allocations: 106.4 kB / 17.06 MB, free: 6.027 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.001486/0.001486, allocations: 195 kB / 18 MB, free: 5.105 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.444/1.444, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1783/0.1783, allocations: 38.04 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001504, allocations: 59.91 kB / 457.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3783/0.3798, allocations: 58.05 MB / 0.5036 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.006016/0.3859, allocations: 4.927 MB / 0.5084 GB, free: 4 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003752/0.3897, allocations: 2.478 MB / 0.5108 GB, free: 2.254 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000418/0.3901, allocations: 14.22 kB / 0.5109 GB, free: 2.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00132/0.3915, allocations: 438.3 kB / 0.5113 GB, free: 1.984 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001508/0.393, allocations: 0.5049 MB / 0.5118 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009995/0.394, allocations: 277.9 kB / 0.512 GB, free: 1.574 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001221/0.3953, allocations: 0.7452 MB / 0.5128 GB, free: 1.242 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006421/0.3959, allocations: 330.9 kB / 0.5131 GB, free: 1.109 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006833/0.3966, allocations: 327.4 kB / 0.5134 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005864/0.3972, allocations: 333.8 kB / 0.5137 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.394e-05/0.3973, allocations: 40.62 kB / 0.5137 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001294/0.3986, allocations: 0.6247 MB / 0.5144 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002662/0.3989, allocations: 203 kB / 0.5145 GB, free: 500 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002869/0.3992, allocations: 241.3 kB / 0.5148 GB, free: 360 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001496/0.4007, allocations: 0.7641 MB / 0.5155 GB, free: 76 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.4007, allocations: 0 / 0.5155 GB, free: 76 kB / 382.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.4007, allocations: 1.094 kB / 0.5155 GB, free: 76 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.306e-05/0.4007, allocations: 0 / 0.5155 GB, free: 76 kB / 382.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.001487/0.4022, allocations: 0.7771 MB / 0.5163 GB, free: 15.46 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.4023, allocations: 13.05 kB / 0.5163 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001182/0.4024, allocations: 84.36 kB / 0.5164 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001775/0.4042, allocations: 203 kB / 0.5166 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007484/0.405, allocations: 370 kB / 0.5169 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.447e-05/0.405, allocations: 29.81 kB / 0.517 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.772e-05/0.4051, allocations: 45.23 kB / 0.517 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001297/0.4064, allocations: 0.6261 MB / 0.5176 GB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.08e-05/0.4065, allocations: 10.69 kB / 0.5176 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.269e-05/0.4065, allocations: 15.84 kB / 0.5176 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.427e-05/0.4066, allocations: 35.39 kB / 0.5177 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001053/0.4077, allocations: 0.6079 MB / 0.5183 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004118/0.4118, allocations: 2.254 MB / 0.5205 GB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006871/0.4125, allocations: 479.4 kB / 0.5209 GB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003476/0.4129, allocations: 243.3 kB / 0.5212 GB, free: 12.74 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.912e-05/0.4129, allocations: 9.062 kB / 0.5212 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.111e-05/0.413, allocations: 37.55 kB / 0.5212 GB, free: 12.69 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.545e-06/0.413, allocations: 0 / 0.5212 GB, free: 12.69 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.003776/0.4168, allocations: 1.712 MB / 0.5229 GB, free: 11.8 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.755e-05/0.4169, allocations: 90 kB / 0.523 GB, free: 11.7 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003175/0.4172, allocations: 279.3 kB / 0.5232 GB, free: 11.54 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.805e-05/0.4172, allocations: 32.08 kB / 0.5232 GB, free: 11.51 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001579/0.4174, allocations: 228.4 kB / 0.5235 GB, free: 11.32 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001396/0.4175, allocations: 149.6 kB / 0.5236 GB, free: 11.2 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001408/0.4177, allocations: 85.34 kB / 0.5237 GB, free: 11.16 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.4178, allocations: 351.8 kB / 0.524 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002879/0.4181, allocations: 179.3 kB / 0.5242 GB, free: 10.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003842/0.4185, allocations: 292.6 kB / 0.5245 GB, free: 10.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007119/0.4192, allocations: 0.5037 MB / 0.525 GB, free: 10.27 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.4193, allocations: 1.031 kB / 0.525 GB, free: 10.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001302/0.4206, allocations: 0.6808 MB / 0.5256 GB, free: 9.992 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.4206, allocations: 6.469 kB / 0.5256 GB, free: 9.992 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.4206, allocations: 3.375 kB / 0.5256 GB, free: 9.992 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006247/0.4213, allocations: 180.8 kB / 0.5258 GB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004039/0.4217, allocations: 93.61 kB / 0.5259 GB, free: 9.938 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004061/0.4257, allocations: 2.784 MB / 0.5286 GB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003719/0.4261, allocations: 21.17 kB / 0.5286 GB, free: 7.918 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.815e-05/0.4262, allocations: 20.77 kB / 0.5287 GB, free: 7.914 MB / 398.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.0003003/0.4265, allocations: 200.3 kB / 0.5289 GB, free: 7.754 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.914e-05/0.4266, allocations: 44.25 kB / 0.5289 GB, free: 7.727 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001283/0.4279, allocations: 0.6333 MB / 0.5295 GB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.428, allocations: 4.219 kB / 0.5295 GB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.428, allocations: 7.938 kB / 0.5295 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.428, allocations: 2.672 kB / 0.5295 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002649/0.4306, allocations: 1.348 MB / 0.5308 GB, free: 6.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.4307, allocations: 0 / 0.5308 GB, free: 6.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003824/0.4311, allocations: 79 kB / 0.5309 GB, free: 6.727 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005122/0.4316, allocations: 148.8 kB / 0.5311 GB, free: 6.684 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.721e-05/0.4316, allocations: 9.812 kB / 0.5311 GB, free: 6.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003472/0.4351, allocations: 2.56 MB / 0.5336 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.4352, allocations: 1.469 kB / 0.5336 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001672/0.4368, allocations: 0.9576 MB / 0.5345 GB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001794/0.437, allocations: 111.7 kB / 0.5346 GB, free: 3.984 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.887e-05/0.4371, allocations: 12.06 kB / 0.5346 GB, free: 3.977 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002376/0.4374, allocations: 17.11 kB / 0.5346 GB, free: 3.965 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.212e-05/0.4375, allocations: 38.53 kB / 0.5347 GB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.404e-05/0.4375, allocations: 11.56 kB / 0.5347 GB, free: 3.941 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002531/0.4378, allocations: 198.4 kB / 0.5349 GB, free: 3.809 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4378, allocations: 0 / 0.5349 GB, free: 3.809 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008008/0.4386, allocations: 139.7 kB / 0.535 GB, free: 3.793 MB / 398.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.001952/0.4405, allocations: 1.505 MB / 0.5365 GB, free: 2.676 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001473/0.442, allocations: 0.6678 MB / 0.5371 GB, free: 2.301 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.4421, allocations: 0 / 0.5371 GB, free: 2.301 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008426/0.4429, allocations: 426.4 kB / 0.5375 GB, free: 2.039 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006507/0.4436, allocations: 68.23 kB / 0.5376 GB, free: 2 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007569/0.4512, allocations: 4.465 MB / 0.542 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000589/0.4518, allocations: 0.8676 MB / 0.5428 GB, free: 14.07 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002525/0.4521, allocations: 68.48 kB / 0.5429 GB, free: 14.05 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002258/0.4523, allocations: 149.4 kB / 0.543 GB, free: 13.92 MB / 414.1 MB Notification: Performance of SimCode: time 1.021e-06/0.4523, allocations: 1.375 kB / 0.543 GB, free: 13.92 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04982/0.5022, allocations: 10.08 MB / 0.5529 GB, free: 5.199 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.94/12.45, allocations: 8 kB / 0.5529 GB, free: 5.191 MB / 414.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