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.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.001275/0.001275, allocations: 91.67 kB / 20.68 MB, free: 3.867 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.0008625/0.0008625, allocations: 166 kB / 23.95 MB, free: 0.5938 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.9251/0.9251, allocations: 177.1 MB / 204.3 MB, free: 5.711 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.2525/0.2525, allocations: 29.41 MB / 290.1 MB, free: 2.453 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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.146e-06/3.146e-06, allocations: 0 / 430.2 MB, free: 13.6 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.853e-05/4.168e-05, allocations: 2.281 kB / 430.2 MB, free: 13.59 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.005508/0.00555, allocations: 4.727 MB / 434.9 MB, free: 8.84 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002481/0.008031, allocations: 2.325 MB / 437.3 MB, free: 6.504 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000245/0.008276, allocations: 19.88 kB / 437.3 MB, free: 6.484 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007389/0.009015, allocations: 430 kB / 437.7 MB, free: 6.062 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000914/0.009929, allocations: 0.5246 MB / 438.2 MB, free: 5.535 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005175/0.01045, allocations: 290.9 kB / 438.5 MB, free: 5.25 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001043/0.01149, allocations: 0.7629 MB / 439.3 MB, free: 4.484 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004524/0.01194, allocations: 281.7 kB / 439.6 MB, free: 4.207 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006156/0.01256, allocations: 442.6 kB / 440 MB, free: 3.773 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003772/0.01293, allocations: 311.1 kB / 440.3 MB, free: 3.469 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.333e-05/0.01298, allocations: 40 kB / 440.3 MB, free: 3.43 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007506/0.01373, allocations: 0.5451 MB / 440.9 MB, free: 2.883 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001787/0.01391, allocations: 211.4 kB / 441.1 MB, free: 2.676 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001466/0.01405, allocations: 171.6 kB / 441.2 MB, free: 2.508 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009032/0.01496, allocations: 0.7906 MB / 442 MB, free: 1.715 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.01496, allocations: 4 kB / 442 MB, free: 1.711 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.01497, allocations: 0 / 442 MB, free: 1.711 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.01498, allocations: 0 / 442 MB, free: 1.711 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.0009434/0.01592, allocations: 0.7116 MB / 442.8 MB, free: 0.9688 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.591e-05/0.01597, allocations: 11.98 kB / 442.8 MB, free: 0.957 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.296e-05/0.01605, allocations: 86.7 kB / 442.8 MB, free: 0.8633 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000896/0.01694, allocations: 204.4 kB / 443 MB, free: 0.6641 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004326/0.01738, allocations: 312.4 kB / 443.4 MB, free: 336 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.32e-05/0.0174, allocations: 29.38 kB / 443.4 MB, free: 308 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.212e-05/0.01746, allocations: 48.33 kB / 443.4 MB, free: 260 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.193/0.2104, allocations: 0.62 MB / 444 MB, free: 54.41 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.562e-05/0.2105, allocations: 4.172 kB / 444.1 MB, free: 54.41 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.196e-05/0.2105, allocations: 24.22 kB / 444.1 MB, free: 54.41 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.95e-05/0.2105, allocations: 31.94 kB / 444.1 MB, free: 54.41 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005452/0.2111, allocations: 0.6055 MB / 444.7 MB, free: 54.37 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001823/0.2129, allocations: 2.072 MB / 446.8 MB, free: 53.15 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003652/0.2133, allocations: 375.9 kB / 447.2 MB, free: 52.98 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001729/0.2134, allocations: 207.5 kB / 447.4 MB, free: 52.9 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.596e-05/0.2135, allocations: 9.266 kB / 447.4 MB, free: 52.9 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.895e-05/0.2135, allocations: 40.03 kB / 447.4 MB, free: 52.86 MB / 410.7 MB Notification: Performance of pre-optimization done (n=42): time 3.426e-06/0.2135, allocations: 0.8906 kB / 447.4 MB, free: 52.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=43): time 0.001923/0.2154, allocations: 1.556 MB / 449 MB, free: 52.19 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.19e-05/0.2155, allocations: 80.3 kB / 449 MB, free: 52.1 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001683/0.2156, allocations: 292 kB / 449.3 MB, free: 51.94 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.693e-05/0.2156, allocations: 29.7 kB / 449.4 MB, free: 51.9 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.254e-05/0.2157, allocations: 237.6 kB / 449.6 MB, free: 51.73 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.915e-05/0.2158, allocations: 161 kB / 449.7 MB, free: 51.62 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.457e-05/0.2159, allocations: 87.42 kB / 449.8 MB, free: 51.58 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.502e-05/0.2159, allocations: 346.6 kB / 450.2 MB, free: 51.25 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000157/0.2161, allocations: 176.7 kB / 450.3 MB, free: 51.19 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001797/0.2162, allocations: 290.7 kB / 450.6 MB, free: 51.01 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003709/0.2166, allocations: 0.5011 MB / 451.1 MB, free: 50.72 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.2166, allocations: 3.156 kB / 451.1 MB, free: 50.72 MB / 410.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0006509/0.2173, allocations: 0.6749 MB / 451.8 MB, free: 50.45 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.2173, allocations: 6.594 kB / 451.8 MB, free: 50.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.2173, allocations: 5.375 kB / 451.8 MB, free: 50.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003596/0.2176, allocations: 166.9 kB / 452 MB, free: 50.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002086/0.2179, allocations: 102.8 kB / 452.1 MB, free: 50.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002087/0.2199, allocations: 2.669 MB / 454.7 MB, free: 48.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000142/0.2201, allocations: 21.31 kB / 454.8 MB, free: 48.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.521e-05/0.2201, allocations: 16.42 kB / 454.8 MB, free: 48.55 MB / 410.7 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.0001509/0.2203, allocations: 197.7 kB / 455 MB, free: 48.39 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.045e-05/0.2203, allocations: 42.86 kB / 455 MB, free: 48.37 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006811/0.221, allocations: 0.632 MB / 455.7 MB, free: 48.11 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.221, allocations: 7.188 kB / 455.7 MB, free: 48.11 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.221, allocations: 0 / 455.7 MB, free: 48.11 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.221, allocations: 6.359 kB / 455.7 MB, free: 48.11 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001202/0.2222, allocations: 1.221 MB / 456.9 MB, free: 47.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.2222, allocations: 2.438 kB / 456.9 MB, free: 47.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001943/0.2224, allocations: 78.45 kB / 457 MB, free: 47.49 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002595/0.2227, allocations: 145.3 kB / 457.1 MB, free: 47.45 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.164e-05/0.2227, allocations: 11.19 kB / 457.1 MB, free: 47.45 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001517/0.2242, allocations: 2.441 MB / 459.6 MB, free: 45.64 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.2242, allocations: 6.5 kB / 459.6 MB, free: 45.64 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007917/0.225, allocations: 0.952 MB / 460.5 MB, free: 45.18 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.119e-05/0.225, allocations: 36.3 kB / 460.6 MB, free: 45.15 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.717e-05/0.2251, allocations: 14.19 kB / 460.6 MB, free: 45.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/0.2252, allocations: 14.44 kB / 460.6 MB, free: 45.14 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.746e-05/0.2252, allocations: 33.53 kB / 460.6 MB, free: 45.13 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.166e-05/0.2252, allocations: 17.56 kB / 460.6 MB, free: 45.13 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001125/0.2253, allocations: 198.9 kB / 460.8 MB, free: 45.02 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2253, allocations: 0 / 460.8 MB, free: 45.02 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004283/0.2258, allocations: 138.4 kB / 461 MB, free: 45 MB / 410.7 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.0008953/0.2267, allocations: 1.489 MB / 462.4 MB, free: 44.02 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007094/0.2274, allocations: 0.6588 MB / 463.1 MB, free: 43.73 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2274, allocations: 4.125 kB / 463.1 MB, free: 43.73 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003324/0.2277, allocations: 396.8 kB / 463.5 MB, free: 43.54 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003287/0.228, allocations: 66.2 kB / 463.6 MB, free: 43.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003281/0.2313, allocations: 4.367 MB / 467.9 MB, free: 40.93 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001611/0.2315, allocations: 266.6 kB / 468.2 MB, free: 40.82 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001226/0.2316, allocations: 71.47 kB / 468.3 MB, free: 40.82 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/0.2317, allocations: 148.1 kB / 468.4 MB, free: 40.71 MB / 410.7 MB Notification: Performance of SimCode: time 7.51e-07/0.2317, allocations: 0 / 468.4 MB, free: 40.71 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02672/0.2585, allocations: 10.55 MB / 479 MB, free: 39.03 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.646/7.905, allocations: 5.484 kB / 479 MB, free: 39.03 MB / 410.7 MB " [Timeout remaining time 652] (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 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.993438767269254]