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.000968/0.000968, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.00112/0.00112, allocations: 167.4 kB / 24.99 MB, free: 8.25 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.9768/0.9768, allocations: 177.1 MB / 205.3 MB, free: 5.629 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.2747/0.2747, allocations: 29.41 MB / 291.2 MB, free: 2.512 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: translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|generator.p.[0-9,]+.|generator.phi|generator1.p.[0-9,]+.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|generator.p.[0-9,]+.|generator.phi|generator1.p.[0-9,]+.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 369.6 MB, free: 11.35 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.237e-05/2.392e-05, allocations: 5.406 kB / 369.6 MB, free: 11.35 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.006241/0.006264, allocations: 5.023 MB / 374.6 MB, free: 6.293 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002669/0.008934, allocations: 2.477 MB / 377.1 MB, free: 3.805 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002278/0.009162, allocations: 19.81 kB / 377.1 MB, free: 3.785 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007382/0.0099, allocations: 438 kB / 377.6 MB, free: 3.355 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001118/0.01102, allocations: 0.5246 MB / 378.1 MB, free: 2.828 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004705/0.01149, allocations: 290.8 kB / 378.4 MB, free: 2.543 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000718/0.01221, allocations: 0.7552 MB / 379.1 MB, free: 1.785 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004421/0.01265, allocations: 281.7 kB / 379.4 MB, free: 1.508 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005563/0.0132, allocations: 442.7 kB / 379.8 MB, free: 1.074 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005051/0.01371, allocations: 319 kB / 380.2 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.575e-05/0.01377, allocations: 36 kB / 380.2 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000755/0.01452, allocations: 0.5412 MB / 380.7 MB, free: 188 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002309/0.01475, allocations: 219.4 kB / 380.9 MB, free: 15.97 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001952/0.01495, allocations: 171.6 kB / 381.1 MB, free: 15.8 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009619/0.01591, allocations: 0.6464 MB / 381.8 MB, free: 15.15 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.01591, allocations: 0 / 381.8 MB, free: 15.15 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.01591, allocations: 0 / 381.8 MB, free: 15.15 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.01592, allocations: 0 / 381.8 MB, free: 15.15 MB / 362.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.0011/0.01702, allocations: 0.8193 MB / 382.6 MB, free: 14.3 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.01707, allocations: 11.98 kB / 382.6 MB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00166/0.01873, allocations: 288.2 kB / 382.9 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004822/0.01921, allocations: 327.1 kB / 383.2 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.413e-05/0.01924, allocations: 29.38 kB / 383.2 MB, free: 13.63 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.908e-05/0.01932, allocations: 44.38 kB / 383.3 MB, free: 13.59 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007282/0.02005, allocations: 427 kB / 383.7 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.476e-05/0.02008, allocations: 4.141 kB / 383.7 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.832e-05/0.02012, allocations: 20.36 kB / 383.7 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.098e-05/0.02019, allocations: 40.86 kB / 383.7 MB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005955/0.02078, allocations: 273.7 kB / 384 MB, free: 12.81 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002594/0.02337, allocations: 1.981 MB / 386 MB, free: 10.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003544/0.02373, allocations: 254.6 kB / 386.2 MB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001455/0.02387, allocations: 131.3 kB / 386.4 MB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.531e-05/0.0239, allocations: 7.781 kB / 386.4 MB, free: 10.31 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.553e-05/0.02392, allocations: 41.39 kB / 386.4 MB, free: 10.26 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 2.134e-06/0.02393, allocations: 0 / 386.4 MB, free: 10.26 MB / 362.7 MB Notification: Performance of matching and sorting (n=43): time 0.002159/0.02609, allocations: 1.093 MB / 387.5 MB, free: 9.121 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.933e-05/0.02614, allocations: 85.11 kB / 387.6 MB, free: 9.02 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002433/0.02638, allocations: 296.4 kB / 387.9 MB, free: 8.711 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.99e-05/0.02641, allocations: 33.7 kB / 387.9 MB, free: 8.672 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001662/0.02657, allocations: 283.1 kB / 388.2 MB, free: 8.387 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001264/0.0267, allocations: 158.6 kB / 388.3 MB, free: 8.23 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.02684, allocations: 91.8 kB / 388.4 MB, free: 8.129 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001804/0.02702, allocations: 0.5157 MB / 389 MB, free: 7.602 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000182/0.0272, allocations: 76.89 kB / 389 MB, free: 7.527 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002979/0.0275, allocations: 236.2 kB / 389.3 MB, free: 7.238 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004899/0.02799, allocations: 346.8 kB / 389.6 MB, free: 6.836 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.02799, allocations: 4 kB / 389.6 MB, free: 6.832 MB / 362.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0009099/0.0289, allocations: 480.3 kB / 390.1 MB, free: 6.352 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.02892, allocations: 12.42 kB / 390.1 MB, free: 6.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.02893, allocations: 8 kB / 390.1 MB, free: 6.332 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005222/0.02945, allocations: 155 kB / 390.2 MB, free: 6.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003271/0.02978, allocations: 103.8 kB / 390.3 MB, free: 6.078 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002984/0.03276, allocations: 2.564 MB / 392.9 MB, free: 3.406 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001971/0.03296, allocations: 23.92 kB / 392.9 MB, free: 3.383 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.999e-05/0.03299, allocations: 20 kB / 392.9 MB, free: 3.363 MB / 362.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.0001611/0.03315, allocations: 184.4 kB / 393.1 MB, free: 3.172 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.282e-05/0.03324, allocations: 47.81 kB / 393.2 MB, free: 3.125 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000827/0.03407, allocations: 431.4 kB / 393.6 MB, free: 2.691 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.03408, allocations: 8.031 kB / 393.6 MB, free: 2.684 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-06/0.03408, allocations: 4 kB / 393.6 MB, free: 2.68 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.03409, allocations: 0 / 393.6 MB, free: 2.68 MB / 362.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00159/0.03568, allocations: 0.9461 MB / 394.6 MB, free: 1.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.167e-06/0.03568, allocations: 0 / 394.6 MB, free: 1.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003159/0.036, allocations: 83.84 kB / 394.6 MB, free: 1.598 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004104/0.03641, allocations: 123.6 kB / 394.8 MB, free: 1.473 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.924e-05/0.03644, allocations: 11.98 kB / 394.8 MB, free: 1.461 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002112/0.03855, allocations: 2.431 MB / 397.2 MB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.03855, allocations: 0 / 397.2 MB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006947/0.03925, allocations: 0.6665 MB / 397.9 MB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.226e-05/0.03928, allocations: 43.69 kB / 397.9 MB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.576e-05/0.03932, allocations: 8 kB / 397.9 MB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001028/0.03942, allocations: 15.98 kB / 397.9 MB, free: 14.14 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.489e-05/0.03949, allocations: 31.94 kB / 398 MB, free: 14.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.766e-05/0.03952, allocations: 12 kB / 398 MB, free: 14.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001011/0.03962, allocations: 205.1 kB / 398.2 MB, free: 13.89 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.03962, allocations: 0 / 398.2 MB, free: 13.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003674/0.03999, allocations: 140 kB / 398.3 MB, free: 13.76 MB / 378.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.0001137/0.0401, allocations: 107.3 kB / 398.4 MB, free: 13.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006811/0.04078, allocations: 0.5485 MB / 399 MB, free: 13.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.04079, allocations: 0 / 399 MB, free: 13.07 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003588/0.04115, allocations: 395.6 kB / 399.4 MB, free: 12.67 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006679/0.04181, allocations: 63.33 kB / 399.4 MB, free: 12.61 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001505/0.04332, allocations: 0.9478 MB / 400.4 MB, free: 11.62 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.911e-05/0.04342, allocations: 150.2 kB / 400.5 MB, free: 11.45 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001139/0.04353, allocations: 63.22 kB / 400.6 MB, free: 11.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.782e-05/0.0436, allocations: 32.48 kB / 400.6 MB, free: 11.36 MB / 378.7 MB Notification: Performance of SimCode: time 1.343e-06/0.0436, allocations: 0 / 400.6 MB, free: 11.36 MB / 378.7 MB Notification: Performance of Templates: time 0.007563/0.05116, allocations: 5.48 MB / 406.1 MB, free: 5.922 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3741383620072156]