Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008522/0.0008522, allocations: 79.7 kB / 20.67 MB, free: 3.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009176/0.0009176, allocations: 170 kB / 23.95 MB, free: 0.6016 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8816/0.8816, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.2166/0.2166, allocations: 29.41 MB / 290.1 MB, free: 2.441 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.024e-06/2.024e-06, allocations: 0 / 430.2 MB, free: 13.59 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.948e-05/2.15e-05, allocations: 8.25 kB / 430.2 MB, free: 13.59 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.00344/0.003461, allocations: 3.308 MB / 433.5 MB, free: 10.25 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001285/0.004746, allocations: 1.169 MB / 434.7 MB, free: 9.078 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001524/0.004898, allocations: 11.94 kB / 434.7 MB, free: 9.066 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005801/0.005478, allocations: 163.2 kB / 434.9 MB, free: 8.906 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003423/0.005821, allocations: 171 kB / 435 MB, free: 8.738 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002371/0.006058, allocations: 139.5 kB / 435.2 MB, free: 8.602 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003564/0.006414, allocations: 298.8 kB / 435.5 MB, free: 8.309 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002691/0.006683, allocations: 114.2 kB / 435.6 MB, free: 8.199 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003244/0.007008, allocations: 171.5 kB / 435.7 MB, free: 8.031 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001915/0.007199, allocations: 99.67 kB / 435.8 MB, free: 7.934 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.756e-05/0.007227, allocations: 15.94 kB / 435.8 MB, free: 7.918 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002241/0.007451, allocations: 199.3 kB / 436 MB, free: 7.723 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 6.542e-05/0.007516, allocations: 63.81 kB / 436.1 MB, free: 7.66 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 6.886e-05/0.007585, allocations: 71.78 kB / 436.2 MB, free: 7.59 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002945/0.00788, allocations: 295.1 kB / 436.5 MB, free: 7.301 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.325e-06/0.007882, allocations: 0 / 436.5 MB, free: 7.301 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.007883, allocations: 0 / 436.5 MB, free: 7.301 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.007888, allocations: 0 / 436.5 MB, free: 7.301 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.000566/0.008454, allocations: 433.3 kB / 436.9 MB, free: 6.848 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.254e-05/0.008516, allocations: 15.98 kB / 436.9 MB, free: 6.832 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.187e-05/0.008578, allocations: 50.72 kB / 436.9 MB, free: 6.773 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004275/0.009006, allocations: 80.72 kB / 437 MB, free: 6.695 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002751/0.009281, allocations: 197.4 kB / 437.2 MB, free: 6.477 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.009299, allocations: 16.7 kB / 437.2 MB, free: 6.461 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.484e-05/0.009334, allocations: 20.33 kB / 437.3 MB, free: 6.441 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003266/0.009661, allocations: 268.5 kB / 437.5 MB, free: 6.156 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.009675, allocations: 192 / 437.5 MB, free: 6.156 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.823e-05/0.009693, allocations: 11.94 kB / 437.5 MB, free: 6.145 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.231e-05/0.009716, allocations: 12.27 kB / 437.5 MB, free: 6.133 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002402/0.009956, allocations: 228.3 kB / 437.8 MB, free: 5.91 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001029/0.01098, allocations: 1.099 MB / 438.9 MB, free: 4.723 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001796/0.01116, allocations: 129.2 kB / 439 MB, free: 4.578 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.178e-05/0.01122, allocations: 41.77 kB / 439 MB, free: 4.531 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.414e-05/0.01123, allocations: 4 kB / 439 MB, free: 4.527 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.14e-05/0.01125, allocations: 34.56 kB / 439.1 MB, free: 4.484 MB / 410.7 MB Notification: Performance of pre-optimization done (n=12): time 1.323e-06/0.01125, allocations: 4 kB / 439.1 MB, free: 4.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002523/0.01151, allocations: 165.4 kB / 439.2 MB, free: 4.312 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.129e-05/0.01155, allocations: 77.11 kB / 439.3 MB, free: 4.219 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001449/0.01169, allocations: 218.9 kB / 439.5 MB, free: 3.992 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.01171, allocations: 25.7 kB / 439.5 MB, free: 3.961 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.697e-05/0.01178, allocations: 160.2 kB / 439.7 MB, free: 3.801 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.729e-05/0.01181, allocations: 43.58 kB / 439.7 MB, free: 3.758 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.77e-05/0.01186, allocations: 41.7 kB / 439.8 MB, free: 3.711 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.267e-05/0.01195, allocations: 330.8 kB / 440.1 MB, free: 3.379 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.182e-05/0.012, allocations: 44.11 kB / 440.2 MB, free: 3.336 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.365e-05/0.01209, allocations: 122.2 kB / 440.3 MB, free: 3.18 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000164/0.01225, allocations: 190 kB / 440.5 MB, free: 2.957 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.01225, allocations: 0 / 440.5 MB, free: 2.957 MB / 410.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002144/0.01247, allocations: 201.7 kB / 440.7 MB, free: 2.754 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.01248, allocations: 8 kB / 440.7 MB, free: 2.746 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.01249, allocations: 7.938 kB / 440.7 MB, free: 2.738 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.01251, allocations: 4.344 kB / 440.7 MB, free: 2.734 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001602/0.01267, allocations: 51.97 kB / 440.7 MB, free: 2.684 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007156/0.01338, allocations: 1.324 MB / 442.1 MB, free: 1.246 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.485e-05/0.01345, allocations: 19.89 kB / 442.1 MB, free: 1.227 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.01346, allocations: 8 kB / 442.1 MB, free: 1.219 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.958e-05/0.01356, allocations: 140.5 kB / 442.2 MB, free: 1.074 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.746e-05/0.01359, allocations: 23.95 kB / 442.2 MB, free: 1.051 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001974/0.01378, allocations: 151 kB / 442.4 MB, free: 0.8945 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.01379, allocations: 4 kB / 442.4 MB, free: 0.8906 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.01379, allocations: 0 / 442.4 MB, free: 0.8906 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.01379, allocations: 3.984 kB / 442.4 MB, free: 0.8867 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004467/0.01424, allocations: 459 kB / 442.8 MB, free: 392 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.01424, allocations: 4 kB / 442.8 MB, free: 388 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.445e-05/0.01433, allocations: 27.97 kB / 442.9 MB, free: 360 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.01433, allocations: 4 kB / 442.9 MB, free: 356 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/0.01435, allocations: 3.984 kB / 442.9 MB, free: 352 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1829/0.1973, allocations: 1.308 MB / 444.2 MB, free: 49.76 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.1973, allocations: 0 / 444.2 MB, free: 49.76 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002927/0.1976, allocations: 305.6 kB / 444.5 MB, free: 49.61 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.837e-05/0.1976, allocations: 16.88 kB / 444.5 MB, free: 49.61 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.477e-05/0.1976, allocations: 8.938 kB / 444.5 MB, free: 49.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.199e-05/0.1977, allocations: 1.312 kB / 444.5 MB, free: 49.61 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.426e-05/0.1977, allocations: 16.67 kB / 444.5 MB, free: 49.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.275e-05/0.1978, allocations: 3.781 kB / 444.5 MB, free: 49.61 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.171e-05/0.1978, allocations: 149.1 kB / 444.7 MB, free: 49.53 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1978, allocations: 0.9844 kB / 444.7 MB, free: 49.53 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002811/0.1981, allocations: 51.55 kB / 444.7 MB, free: 49.53 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000342/0.1985, allocations: 0.8363 MB / 445.6 MB, free: 48.86 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002478/0.1987, allocations: 127.4 kB / 445.7 MB, free: 48.86 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1987, allocations: 3.125 kB / 445.7 MB, free: 48.86 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 7.357e-05/0.1988, allocations: 58.5 kB / 445.8 MB, free: 48.86 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003001/0.1991, allocations: 42.55 kB / 445.8 MB, free: 48.85 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00152/0.2006, allocations: 2.293 MB / 448.1 MB, free: 47.38 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.39e-05/0.2007, allocations: 133.4 kB / 448.2 MB, free: 47.3 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 7.22e-05/0.2008, allocations: 30.47 kB / 448.2 MB, free: 47.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.261e-05/0.2008, allocations: 55.64 kB / 448.3 MB, free: 47.29 MB / 410.7 MB Notification: Performance of SimCode: time 9.02e-07/0.2008, allocations: 4 kB / 448.3 MB, free: 47.29 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01612/0.2169, allocations: 4.474 MB / 452.8 MB, free: 46.2 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.502/7.719, allocations: 10.95 kB / 452.8 MB, free: 46.19 MB / 410.7 MB " [Timeout remaining time 652] (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.613278771750629]