Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.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.001469/0.001469, 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.001664/0.001664, allocations: 163.9 kB / 24.99 MB, free: 8.289 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.976/0.976, allocations: 177.1 MB / 205.3 MB, free: 5.641 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.2518/0.2518, allocations: 29.42 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.AC3ph.Generation.TurbineGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|generator.powerAngle|sensor.p.[0-9,]+.|sensor1.p.[0-9,]+.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator") translateModel(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|generator.powerAngle|sensor.p.[0-9,]+.|sensor1.p.[0-9,]+.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.883e-06/1.883e-06, allocations: 0 / 369.6 MB, free: 11.32 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.772e-05/2.961e-05, allocations: 2.312 kB / 369.6 MB, free: 11.32 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.01088/0.01091, allocations: 7.59 MB / 377.2 MB, free: 3.688 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003525/0.01444, allocations: 2.949 MB / 380.2 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000344/0.01478, allocations: 35.69 kB / 380.2 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00121/0.01599, allocations: 0.731 MB / 380.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001351/0.01734, allocations: 0.7264 MB / 381.7 MB, free: 15.23 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007252/0.01807, allocations: 398.9 kB / 382.1 MB, free: 14.84 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001337/0.0194, allocations: 1.383 MB / 383.4 MB, free: 13.45 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005303/0.01993, allocations: 0.5412 MB / 384 MB, free: 12.9 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00059/0.02052, allocations: 0.7751 MB / 384.8 MB, free: 12.12 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005631/0.02109, allocations: 0.5883 MB / 385.3 MB, free: 11.53 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.331e-05/0.02116, allocations: 76 kB / 385.4 MB, free: 11.46 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005521/0.02171, allocations: 0.5028 MB / 385.9 MB, free: 10.95 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002773/0.02199, allocations: 478.8 kB / 386.4 MB, free: 10.48 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002668/0.02226, allocations: 363.2 kB / 386.7 MB, free: 10.13 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009484/0.02321, allocations: 1.102 MB / 387.8 MB, free: 9.023 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.02321, allocations: 3.938 kB / 387.8 MB, free: 9.02 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.532e-06/0.02321, allocations: 0 / 387.8 MB, free: 9.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.02322, allocations: 0 / 387.8 MB, free: 9.02 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.001375/0.02459, allocations: 1.347 MB / 389.2 MB, free: 7.633 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.314e-05/0.02463, allocations: 11.98 kB / 389.2 MB, free: 7.621 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008058/0.02543, allocations: 300.1 kB / 389.5 MB, free: 7.328 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/0.02647, allocations: 0.6909 MB / 390.2 MB, free: 6.609 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.738e-05/0.02651, allocations: 62.38 kB / 390.3 MB, free: 6.551 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001396/0.02665, allocations: 104.6 kB / 390.4 MB, free: 6.449 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007755/0.02742, allocations: 0.7527 MB / 391.1 MB, free: 5.637 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.467e-05/0.02745, allocations: 11.89 kB / 391.1 MB, free: 5.625 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.796e-05/0.02749, allocations: 35.98 kB / 391.2 MB, free: 5.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.627e-05/0.02759, allocations: 69.97 kB / 391.2 MB, free: 5.523 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005647/0.02816, allocations: 395.6 kB / 391.6 MB, free: 5.133 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0028/0.03096, allocations: 3.826 MB / 395.4 MB, free: 1.125 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003303/0.03129, allocations: 220 kB / 395.6 MB, free: 0.8867 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000163/0.03145, allocations: 136.1 kB / 395.8 MB, free: 0.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.572e-05/0.03147, allocations: 12.5 kB / 395.8 MB, free: 0.7383 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/0.0315, allocations: 41.89 kB / 395.8 MB, free: 0.6836 MB / 362.7 MB Notification: Performance of pre-optimization done (n=48): time 2.976e-06/0.03151, allocations: 4 kB / 395.8 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of matching and sorting (n=51): time 0.001763/0.03327, allocations: 1.164 MB / 397 MB, free: 15.48 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.6e-05/0.03331, allocations: 89.61 kB / 397.1 MB, free: 15.38 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003824/0.0337, allocations: 0.5375 MB / 397.6 MB, free: 14.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.704e-05/0.03372, allocations: 33.7 kB / 397.7 MB, free: 14.78 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002325/0.03396, allocations: 0.5336 MB / 398.2 MB, free: 14.24 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.03406, allocations: 198.3 kB / 398.4 MB, free: 14.04 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001323/0.03419, allocations: 152.4 kB / 398.5 MB, free: 13.89 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.03434, allocations: 0.5547 MB / 399.1 MB, free: 13.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001575/0.0345, allocations: 105.9 kB / 399.2 MB, free: 13.21 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002801/0.03478, allocations: 424.7 kB / 399.6 MB, free: 12.67 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004941/0.03528, allocations: 0.5762 MB / 400.2 MB, free: 11.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.03528, allocations: 4 kB / 400.2 MB, free: 11.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0009885/0.03627, allocations: 0.7367 MB / 400.9 MB, free: 11.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.03628, allocations: 8 kB / 400.9 MB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005986/0.03688, allocations: 450.1 kB / 401.4 MB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004689/0.03735, allocations: 194.8 kB / 401.6 MB, free: 10.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002879/0.03764, allocations: 151.7 kB / 401.7 MB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003253/0.04089, allocations: 5.839 MB / 407.6 MB, free: 4.176 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002144/0.04111, allocations: 43.91 kB / 407.6 MB, free: 4.133 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.056e-05/0.04114, allocations: 28 kB / 407.6 MB, free: 4.105 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001545/0.04129, allocations: 204.4 kB / 407.8 MB, free: 3.895 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.778e-05/0.04137, allocations: 79.58 kB / 407.9 MB, free: 3.816 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004438/0.04181, allocations: 416 kB / 408.3 MB, free: 3.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.04182, allocations: 8 kB / 408.3 MB, free: 3.402 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.04182, allocations: 7.938 kB / 408.3 MB, free: 3.395 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.04183, allocations: 0 / 408.3 MB, free: 3.395 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001167/0.04299, allocations: 1.126 MB / 409.4 MB, free: 2.207 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.043, allocations: 3.938 kB / 409.4 MB, free: 2.203 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000322/0.04332, allocations: 127.9 kB / 409.6 MB, free: 2.078 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.04332, allocations: 4 kB / 409.6 MB, free: 2.074 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.473e-05/0.04335, allocations: 12 kB / 409.6 MB, free: 2.062 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.04335, allocations: 4 kB / 409.6 MB, free: 2.059 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.04335, allocations: 4 kB / 409.6 MB, free: 2.055 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005793/0.04393, allocations: 0.6899 MB / 410.3 MB, free: 1.316 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/0.04405, allocations: 103.5 kB / 410.4 MB, free: 1.215 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.097e-05/0.0441, allocations: 12 kB / 410.4 MB, free: 1.203 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001472/0.04424, allocations: 19.98 kB / 410.4 MB, free: 1.184 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.665e-05/0.04429, allocations: 36.38 kB / 410.5 MB, free: 1.148 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.053e-05/0.04431, allocations: 23.92 kB / 410.5 MB, free: 1.125 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002237/0.04454, allocations: 342.8 kB / 410.8 MB, free: 0.793 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.04454, allocations: 0 / 410.8 MB, free: 0.793 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007131/0.04525, allocations: 235.9 kB / 411 MB, free: 0.5625 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (turboGrp.phi,turboGrp.w,generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * 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 (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002215/0.04547, allocations: 138.6 kB / 411.2 MB, free: 428 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000864/0.04633, allocations: 0.9865 MB / 412.2 MB, free: 15.38 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.04634, allocations: 1.312 kB / 412.2 MB, free: 15.38 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001733/0.04651, allocations: 167.4 kB / 412.3 MB, free: 15.21 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004429/0.04695, allocations: 139.3 kB / 412.5 MB, free: 15.08 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00271/0.04966, allocations: 1.74 MB / 414.2 MB, free: 13.28 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002046/0.04987, allocations: 238.8 kB / 414.4 MB, free: 13.02 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003503/0.05022, allocations: 157.4 kB / 414.6 MB, free: 12.87 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001392/0.05036, allocations: 60.48 kB / 414.7 MB, free: 12.8 MB / 394.7 MB Notification: Performance of SimCode: time 6.92e-07/0.05036, allocations: 0 / 414.7 MB, free: 12.8 MB / 394.7 MB Notification: Performance of Templates: time 0.01334/0.06369, allocations: 8.662 MB / 423.3 MB, free: 4.262 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.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.299330434994772]